<resolv.h> requires <netinet/in.h>

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Mon Dec 8 22:45:00 GMT 2008


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

This affects both minires-1.02 and Cygwin 1.7.0-34.  STC based on a
configure test:

$ cat > test-resolv.c <<EOF
#include <resolv.h>

int
main (void) {
    return res_ninit (&_res);
}
EOF

$ gcc -Wall -o test-resolv.exe test-resolv.c
In file included from test-resolv.c:1:
/usr/include/resolv.h:162: error: field `nsaddr_list' has incomplete type
/usr/include/resolv.h:172: error: field `addr' has incomplete type
/usr/include/resolv.h:195: error: field `sin' has incomplete type

The missing typedef is sockaddr_in.  Patch attached.


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

iEYEAREIAAYFAkk9o3AACgkQpiWmPGlmQSNjeACg3/FBU9KSNBTigpifYBq4YX3Y
zAMAn2yGnzZryM0g1Qbz0AKq4NnOFjQZ
=NM7d
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resolv_h-sockaddr_in.patch
Type: text/x-patch
Size: 594 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20081208/d686543e/attachment.bin>


More information about the Cygwin-patches mailing list