mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 16:30:00 -04:00
ensure that INADDR_LOOPBACK is defined
This commit is contained in:
parent
ed8daea264
commit
64c7a503c2
1 changed files with 9 additions and 5 deletions
|
|
@ -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 <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>
|
||||
|
||||
|
|
@ -99,8 +103,8 @@
|
|||
#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
|
||||
|
|
|
|||
Loading…
Reference in a new issue