diff --git a/lib/isc/unix/include/isc/net.h b/lib/isc/unix/include/isc/net.h index c80e8380ed..6ebe1d904b 100644 --- a/lib/isc/unix/include/isc/net.h +++ b/lib/isc/unix/include/isc/net.h @@ -15,7 +15,7 @@ * 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 #define ISC_NET_H 1 @@ -44,8 +44,8 @@ * * It declares inet_aton(), inet_ntop(), and inet_pton(). * - * It ensures that INADDR_ANY, IN6ADDR_ANY_INIT, in6addr_any, and - * in6addr_loopback are available. + * It ensures that INADDR_LOOPBACK, INADDR_ANY, IN6ADDR_ANY_INIT, + * in6addr_any, and in6addr_loopback are available. * * It ensures that IN_MULTICAST() is available to check for multicast * addresses. @@ -84,6 +84,10 @@ #include /* Required on BSD/OS for in6_pktinfo. */ #endif +#ifndef ISC_PLATFORM_HAVEIPV6 +#include /* Contractual promise. */ +#endif + #include #include @@ -99,8 +103,8 @@ #define PF_INET6 AF_INET6 #endif -#ifndef ISC_PLATFORM_HAVEIPV6 -#include /* Contractual promise. */ +#ifndef INADDR_LOOPBACK +#define INADDR_LOOPBACK 0x7f000001UL #endif #ifndef ISC_PLATFORM_HAVEIN6PKTINFO