[distcc] sockaddr_storage in dparent.c and prefork.c
Martin Pool
mbp at samba.org
Thu Nov 27 23:54:18 GMT 2003
On 27 Nov 2003, Harold L Hunt II <huntharo at msu.edu> wrote:
> There was a change from 2.11.2 to CVS in which src/dparent.c and
> src/prefork.c use sockaddr_storage instead of sockaddr. I do not
> believe that sockaddr_storage is supported by newlib on Cygwin (our C
> library).
>
> My temporary fix was to change sockaddr_storage back to sockaddr.
> Everything compiles again. Would somebody comment on whether or not
> this change is essential for some other platform? If the change is not
> essential for some other platform, could we change back to sockaddr so
> that the build isn't broken on Cygwin?
It's needed to make IPv6 support work, since sockaddr_in6 is typically
bigger than sockaddr.
The intent of the change was that sockaddr_storage would only be used
if you give --enable-rfc2553. RFC2553 requires sockaddr_storage. Is
there a problem in how this is done?
--
Martin
linux.conf.au -- Adelaide, January 2004
More information about the distcc
mailing list