2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 15:45:25 +00:00

ensure that INADDR_LOOPBACK is defined

This commit is contained in:
David Lawrence
2001-05-31 10:54:51 +00:00
parent ed8daea264
commit 64c7a503c2

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: net.h,v 1.27 2001/01/09 21:58:41 bwelling Exp $ */ /* $Id: net.h,v 1.28 2001/05/31 10:54:51 tale Exp $ */
#ifndef ISC_NET_H #ifndef ISC_NET_H
#define ISC_NET_H 1 #define ISC_NET_H 1
@@ -44,8 +44,8 @@
* *
* It declares inet_aton(), inet_ntop(), and inet_pton(). * It declares inet_aton(), inet_ntop(), and inet_pton().
* *
* It ensures that INADDR_ANY, IN6ADDR_ANY_INIT, in6addr_any, and * It ensures that INADDR_LOOPBACK, INADDR_ANY, IN6ADDR_ANY_INIT,
* in6addr_loopback are available. * in6addr_any, and in6addr_loopback are available.
* *
* It ensures that IN_MULTICAST() is available to check for multicast * It ensures that IN_MULTICAST() is available to check for multicast
* addresses. * addresses.
@@ -84,6 +84,10 @@
#include <netinet6/in6.h> /* Required on BSD/OS for in6_pktinfo. */ #include <netinet6/in6.h> /* Required on BSD/OS for in6_pktinfo. */
#endif #endif
#ifndef ISC_PLATFORM_HAVEIPV6
#include <isc/ipv6.h> /* Contractual promise. */
#endif
#include <isc/lang.h> #include <isc/lang.h>
#include <isc/types.h> #include <isc/types.h>
@@ -99,8 +103,8 @@
#define PF_INET6 AF_INET6 #define PF_INET6 AF_INET6
#endif #endif
#ifndef ISC_PLATFORM_HAVEIPV6 #ifndef INADDR_LOOPBACK
#include <isc/ipv6.h> /* Contractual promise. */ #define INADDR_LOOPBACK 0x7f000001UL
#endif #endif
#ifndef ISC_PLATFORM_HAVEIN6PKTINFO #ifndef ISC_PLATFORM_HAVEIN6PKTINFO