2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

1024. [port] HP and Sun decided to use the same macros and

structures for different things.
This commit is contained in:
Mark Andrews 2001-10-03 05:08:32 +00:00
parent 6bebabb376
commit 40dd9cb8cc
4 changed files with 42 additions and 3 deletions

View File

@ -1,3 +1,6 @@
1024. [port] HP and Sun decided to use the same macros and
structures for different things.
1023. [func] Accept hints without TTLs. 1023. [func] Accept hints without TTLs.
1022. [bug] Allow hints to be completely empty. [RT #1802] 1022. [bug] Allow hints to be completely empty. [RT #1802]

View File

@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.302 $) AC_REVISION($Revision: 1.303 $)
AC_INIT(lib/dns/name.c) AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13) AC_PREREQ(2.13)
@ -231,6 +231,27 @@ AC_TRY_COMPILE([],[long long i = 0; return (0);],
ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"]) ISC_PLATFORM_HAVELONGLONG="#undef ISC_PLATFORM_HAVELONGLONG"])
AC_SUBST(ISC_PLATFORM_HAVELONGLONG) AC_SUBST(ISC_PLATFORM_HAVELONGLONG)
#
# check if we have lifconf
#
AC_MSG_CHECKING(for struct lifconf)
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
],
[
struct lifconf lifconf;
lifconf.lifc_len = 0;
]
,
[AC_MSG_RESULT(yes)
ISC_PLATFORM_HAVELIFCONF="#define ISC_PLATFORM_HAVELIFCONF 1"],
[AC_MSG_RESULT(no)
ISC_PLATFORM_HAVELIFCONF="#undef ISC_PLATFORM_HAVELIFCONF"])
AC_SUBST(ISC_PLATFORM_HAVELIFCONF)
# #
# check if we need to #include sys/select.h explicitly # check if we need to #include sys/select.h explicitly
# #

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: platform.h.in,v 1.24 2001/07/18 08:15:21 marka Exp $ */ /* $Id: platform.h.in,v 1.25 2001/10/03 05:08:30 marka Exp $ */
#ifndef ISC_PLATFORM_H #ifndef ISC_PLATFORM_H
#define ISC_PLATFORM_H 1 #define ISC_PLATFORM_H 1
@ -147,6 +147,12 @@
*/ */
@ISC_PLATFORM_HAVELONGLONG@ @ISC_PLATFORM_HAVELONGLONG@
/*
* Define if the system has struct lifconf which is a extended struct ifconf
* for IPv6.
*/
@ISC_PLATFORM_HAVELIFCONF@
/* /*
* Used to control how extern data is linked; needed for Win32 platforms. * Used to control how extern data is linked; needed for Win32 platforms.
*/ */

View File

@ -15,12 +15,21 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: ifiter_ioctl.c,v 1.21 2001/09/05 21:05:36 bwelling Exp $ */ /* $Id: ifiter_ioctl.c,v 1.22 2001/10/03 05:08:32 marka Exp $ */
/* /*
* Obtain the list of network interfaces using the SIOCGLIFCONF ioctl. * Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
* See netintro(4). * See netintro(4).
*/ */
#ifndef ISC_PLATFORM_HAVELIFCONF
/*
* HP uses these differently to Sun.
*/
#undef SIOCGLIFCONF
#undef SIOCGLIFADDR
#endif
#ifndef SIOCGLIFCONF #ifndef SIOCGLIFCONF
#define SIOCGLIFCONF SIOCGIFCONF #define SIOCGLIFCONF SIOCGIFCONF
#define lifc_len ifc_len #define lifc_len ifc_len