From: Mark Andrews Date: Tue, 15 Oct 2002 04:32:50 +0000 (+0000) Subject: 1388. [port] irix: check for sys/sysctl.h and NET_RT_IFLIST before X-Git-Tag: v9.2.3rc1~104^2~290 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=be0e075ac2c10ade3e80edef7fa14ac0fda92690;p=thirdparty%2Fbind9.git 1388. [port] irix: check for sys/sysctl.h and NET_RT_IFLIST before defining HAVE_IFLIST_SYSCTL. [RT #3770] --- diff --git a/CHANGES b/CHANGES index 1cf21ac9903..f4e9057e1aa 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1388. [port] irix: check for sys/sysctl.h and NET_RT_IFLIST before + defining HAVE_IFLIST_SYSCTL. [RT #3770] + 1387. [bug] named could crash due to an access to invalid memory space (which caused an assertion failure) in incremental cleaning. [RT #3588] diff --git a/acconfig.h b/acconfig.h index 72c406bb3e3..b04dc0db4d0 100644 --- a/acconfig.h +++ b/acconfig.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: acconfig.h,v 1.37 2002/06/07 00:03:46 marka Exp $ */ +/* $Id: acconfig.h,v 1.38 2002/10/15 04:32:49 marka Exp $ */ /*** *** This file is not to be included by any public header files, because @@ -53,7 +53,7 @@ /* define if catgets() is available */ #undef HAVE_CATGETS -/* define if you have the NET_RT_IFLIST sysctl variable. */ +/* define if you have the NET_RT_IFLIST sysctl variable and sys/sysctl.h */ #undef HAVE_IFLIST_SYSCTL /* define if you need to #define _XPG4_2 before including sys/socket.h */ diff --git a/configure.in b/configure.in index a38c996abd6..502ac80b1d3 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl esyscmd([sed "s/^/# /" COPYRIGHT])dnl AC_DIVERT_POP()dnl -AC_REVISION($Revision: 1.330 $) +AC_REVISION($Revision: 1.331 $) AC_INIT(lib/dns/name.c) AC_PREREQ(2.13) @@ -1484,6 +1484,8 @@ AC_SUBST(ISC_LWRES_GETNAMEINFOPROTO) # # Look for a sysctl call to get the list of network interfaces. # +case $ac_cv_header_sys_sysctl_h in +yes) AC_MSG_CHECKING(for interface list sysctl) AC_EGREP_CPP(found_rt_iflist, [ #include @@ -1496,6 +1498,8 @@ found_rt_iflist [AC_MSG_RESULT(yes) AC_DEFINE(HAVE_IFLIST_SYSCTL)], [AC_MSG_RESULT(no)]) +;; +esac # # Check for some other useful functions that are not ever-present.