-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kaplan, Andrew H. wrote:
> Here is an excerpt from the ntohl man page: > > SYNOPSIS: > #include <netinet/in.h> > > _XOPEN_SOURCE_EXTENDED only > > #include <arpa/inet.h> > > unsigned long htonl (unsigned long hostlong); > unsigned short htons (unsigned short hostshort); > unsigned long ntohl (unsigned long netlong); > unsigned short ntohs (unsigned short netshort); > ... Compare that to Solaris: Sockets Library Functions byteorder(3SOCKET) NAME byteorder, htonl, htons, ntohl, ntohs - convert values between host and network byte order SYNOPSIS cc [ flag... ] file... -lsocket -lnsl [ library... ] ... Well, that didn't help. Let's take a look at /usr/include/netinet/in.h, in there you should find a define for ntohl, something like: #ifdef _XOPEN_SOURCE_EXTENDED /* * Macros for number representation conversion. * * netinet/in.h is another location for these macros */ #ifndef ntohl #define ntohl(x) (x) #define ntohs(x) (x) #define htonl(x) (x) #define htons(x) (x) #endif #endif /* _XOPEN_SOURCE_EXTENDED */ If it were like this we would not have a problem, so let's see how is defined. - -- René Berber -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iEYEARECAAYFAkPrn/0ACgkQL3NNweKTRgwCvwCfSfbDkHqkNSAR2DJdq5Mez7OT wA8AniltQB8BfLNZzHDNdCaevJyJEKyy =ls3U -----END PGP SIGNATURE----- _______________________________________________ http://lurker.clamav.net/list/clamav-users.html