diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-10-16 09:26:07 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-10-16 09:26:07 +0200 |
commit | 3cdd75d6d78830ecc5633df781baaf2be2c4a7e9 (patch) | |
tree | 91e433f004690564b4ed187bace32875e0d4ab5f /lib/netdb.in.h | |
parent | 0d84deee32855f0f9b7df4f5d456712793e2797e (diff) | |
download | gnulib-3cdd75d6d78830ecc5633df781baaf2be2c4a7e9.tar.gz |
Fixes for netdb.h.
* m4/netdb_h.m4: Assume that if netdb.h exists, it works.
* lib/netdb.in.h: Fix typo.
Reported by Bruno Haible <bruno@clisp.org>
* lib/netdb.in.h: Include sys/socket.h for platforms without
netdb.h, to get structures like hostent on MinGW.
* modules/netdb (Depends-on): Add sys_socket.
Diffstat (limited to 'lib/netdb.in.h')
-rw-r--r-- | lib/netdb.in.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/netdb.in.h b/lib/netdb.in.h index 0aa0691d58..9a637f28f4 100644 --- a/lib/netdb.in.h +++ b/lib/netdb.in.h @@ -40,7 +40,10 @@ #else -/* Declarations for a platform that has <netdb.h>. */ +/* Get netdb.h definitions such as struct hostent for MinGW. */ +#include <sys/socket.h> + +/* Declarations for a platform that lacks <netdb.h>. */ #endif /* HAVE_NETDB_H */ |