diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-02-20 10:17:43 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-02-20 10:17:43 +0000 |
commit | 1270a9d8ee0ea6ae533546b07a6714f351346600 (patch) | |
tree | fac12982823139a57e42188772ecba19ee72d66c /Src | |
parent | 64d011185ad8e65aabf3b18d07d2f5b29e804ae1 (diff) | |
download | zsh-1270a9d8ee0ea6ae533546b07a6714f351346600.tar.gz zsh-1270a9d8ee0ea6ae533546b07a6714f351346600.tar.xz zsh-1270a9d8ee0ea6ae533546b07a6714f351346600.zip |
26584: use bind/netdb.h where appropriate
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Modules/tcp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Src/Modules/tcp.h b/Src/Modules/tcp.h index 231267e22..f69e246e0 100644 --- a/Src/Modules/tcp.h +++ b/Src/Modules/tcp.h @@ -37,7 +37,16 @@ #include <sys/types.h> #include <sys/socket.h> + +#ifdef HAVE_BIND_NETDB_H +/* + * On systems where we're using -lbind, this has more definitions + * than the standard header. + */ +#include <bind/netdb.h> +#else #include <netdb.h> +#endif /* * For some reason, configure doesn't always detect netinet/in_systm.h. |