]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
ensure that INADDR_LOOPBACK is defined
authorDavid Lawrence <source@isc.org>
Thu, 31 May 2001 10:54:51 +0000 (10:54 +0000)
committerDavid Lawrence <source@isc.org>
Thu, 31 May 2001 10:54:51 +0000 (10:54 +0000)
lib/isc/unix/include/isc/net.h

index c80e8380ed6e8d6e16351bedc2e687a94312c4ba..6ebe1d904bfc4119889369f01b5b0c52fe4545e5 100644 (file)
@@ -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.
 #include <netinet6/in6.h>      /* Required on BSD/OS for in6_pktinfo. */
 #endif
 
+#ifndef ISC_PLATFORM_HAVEIPV6
+#include <isc/ipv6.h>          /* Contractual promise. */
+#endif
+
 #include <isc/lang.h>
 #include <isc/types.h>
 
 #define PF_INET6 AF_INET6
 #endif
 
-#ifndef ISC_PLATFORM_HAVEIPV6
-#include <isc/ipv6.h>          /* Contractual promise. */
+#ifndef INADDR_LOOPBACK
+#define INADDR_LOOPBACK 0x7f000001UL
 #endif
 
 #ifndef ISC_PLATFORM_HAVEIN6PKTINFO