On 2/6/07, Michael A. Cleverly <[EMAIL PROTECTED]> wrote:
On 2/6/07, Vlad Seryakov <[EMAIL PROTECTED]> wrote:
> Try to compile this and see if you get 127.0.0.1 printed
>
> #include <ns.h>
>
> main()
> {
> struct in_addr addr;
> addr.s_addr = inet_addr("127.0.0.1");
> printf("%s\n", ns_inet_ntoa(addr));
> }
>
> gcc -I /usr/local/ns/include -o a a.c /usr/local/ns/lib/libnsthread.so
[EMAIL PROTECTED]:~$ ./a
0.0.0.0
I get 127.0.0.1 when I compile Tcl 8.4.14, Naviserver & the above
program on OpenBSD 3.9/amd64 and OpenBSD 3.8/macppc.
So I wonder if it has to do with being on sparc64 being big endian
while amd64 is little endian?
Michael