2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Solaris 2.8 header files are broken for getnetbyaddr(). Both cases

of the #ifdef/#else/#endif are the same.
This commit is contained in:
Mark Andrews
2001-04-09 06:06:20 +00:00
parent b9614c7d79
commit dcab756185
2 changed files with 190 additions and 180 deletions

363
lib/bind/configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.31 $)
AC_REVISION($Revision: 1.32 $)
AC_INIT(resolv/herror.c)
AC_PREREQ(2.13)
@@ -1139,6 +1139,10 @@ AC_TRY_COMPILE([
ISC_LWRES_ENDHOSTENTINT="#undef ISC_LWRES_ENDHOSTENTINT"])
AC_SUBST(ISC_LWRES_ENDHOSTENTINT)
case "$host" in
*-solaris2.8*)
GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long";;
*)
AC_MSG_CHECKING(for getnetbyaddr(in_addr_t, ...))
AC_TRY_COMPILE([
#include <netdb.h>
@@ -1148,6 +1152,7 @@ struct netent *getnetbyaddr(in_addr_t, int);],
GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T in_addr_t"],
[AC_MSG_RESULT(no)
GETNETBYADDR_ADDR_T="#define GETNETBYADDR_ADDR_T long"])
esac
AC_SUBST(GETNETBYADDR_ADDR_T)
AC_MSG_CHECKING(for int setnetent)