mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
26584: use bind/netdb.h where appropriate
This commit is contained in:
parent
64d011185a
commit
1270a9d8ee
3 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-02-20 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 26584: configure.ac, Src/Modules/tcp.h: use bind/netdb.h where
|
||||
appropriate.
|
||||
|
||||
2009-02-19 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 26583: Src/init.c, Src/zsh.h: use HOOK_SUFFIX more widely
|
||||
|
@ -11210,5 +11215,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.4573 $
|
||||
* $Revision: 1.4574 $
|
||||
*****************************************************
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -755,6 +755,12 @@ fi
|
|||
AC_CHECK_LIB(socket, socket)
|
||||
AC_CHECK_LIB(bind, gethostbyname2)
|
||||
|
||||
case $LIBS in
|
||||
*-lbind*)
|
||||
AC_CHECK_HEADERS(bind/netdb.h)
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl ---------------
|
||||
dnl CHECK FOR ICONV
|
||||
dnl ---------------
|
||||
|
|
Loading…
Reference in a new issue