[PATCH] <netdb.h> SUSv3 compliance

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Thu Apr 2 05:47:00 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

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.


Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAknUUWIACgkQpiWmPGlmQSMI9ACgkSxq6DAf7aedISjvD7FE1Ocm
AU4AoJ4LRzKDN3IU3bhP2aBwFFysct1Q
=DMTr
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-netdb.h-susv3.patch
Type: text/x-patch
Size: 692 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20090402/83c74560/attachment.bin>


More information about the Cygwin-patches mailing list