This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] <netdb.h> SUSv3 compliance
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 2 Apr 2009 10:49:30 +0200
- Subject: Re: [PATCH] <netdb.h> SUSv3 compliance
- References: <49D45162.8020805@users.sourceforge.net>
- Reply-to: cygwin-patches at cygwin dot com
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.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat