[PATCH] <netdb.h> SUSv3 compliance
Thu Apr 2 08:49:00 GMT 2009
On Apr 2 00:47, Yaakov S wrote:
> SUSv3&4 state:
> > Inclusion of the <netdb.h> header may also make visible all symbols
> > from <netinet/in.h>, <sys/socket.h>, and <inttypes.h>.
> Having come across packages that assume this (at least in part), I would
> like to make ours compatible.
> <inttypes.h> must #include <stdint.h> per SUSv3, so that should be a
> safe switch. <cygwin/in.h> already has a #include <cygwin/socket.h>,
> but I don't know if you want to assume that or not.
> Patch attached.
Applied with a tweak. The inclusion of netinet/in.h clashes with the
inclusion of winsock2.h in case of a couple of datatype. So this
header must not be included when building Cygwin itself.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
More information about the Cygwin-patches