[Hackfest] Re: sc: darwin build fixes
Christopher Yeoh
cyeoh at samba.org
Sat Mar 26 18:40:51 EST 2005
At 2005/3/25 19:20+1100 Neil Conway writes:
> SC 0.3 doesn't build out of the box on OSX (I'm using 10.3.8 with the
> default g++). Attached is a patch that fixes the problems:
>
> - OSX seems to insist that <sys/types.h> be included before
> <netinet/in.h> can be included. In the files where netinet/in.h is just
> included for the sake of htonl(3), it would also work to include
> <arpa/inet.h> instead -- that is where htonl(3) is be declared,
> according to recent versions of POSIX.
>
> - OSX also wants <netinet/in.h> to be included when the sockaddr_in type
> is used. This is per POSIX.
>
Thanks, patch applied. Should be a new release in the next few days.
Chris
--
cyeoh at samba.org
More information about the Hackfest
mailing list