moved INADDR_LOOPBACK definition to lwres/net.h, because it was causing
redefinition warnings on multiple platforms
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: lwres.h,v 1.47 2001/01/09 21:59:47 bwelling Exp $ */
|
||||
/* $Id: lwres.h,v 1.48 2001/03/08 16:09:40 tale Exp $ */
|
||||
|
||||
#ifndef LWRES_LWRES_H
|
||||
#define LWRES_LWRES_H 1
|
||||
@@ -82,13 +82,6 @@
|
||||
#define LWRES_ADDR_MAXLEN 16 /* changing this breaks ABI */
|
||||
#define LWRES_RESOLV_CONF "/etc/resolv.conf"
|
||||
|
||||
/*
|
||||
* XXXMLG
|
||||
*/
|
||||
#ifndef INADDR_LOOPBACK
|
||||
#define INADDR_LOOPBACK 0x7f000001UL
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Flags.
|
||||
*
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: net.h,v 1.10 2001/01/09 21:59:48 bwelling Exp $ */
|
||||
/* $Id: net.h,v 1.11 2001/03/08 16:09:41 tale Exp $ */
|
||||
|
||||
#ifndef LWRES_NET_H
|
||||
#define LWRES_NET_H 1
|
||||
@@ -42,7 +42,8 @@
|
||||
*
|
||||
* It declares lwres_net_aton(), lwres_net_ntop(), and lwres_net_pton().
|
||||
*
|
||||
* It ensures that INADDR_ANY and IN6ADDR_ANY_INIT are defined.
|
||||
* It ensures that INADDR_LOOPBACK, INADDR_ANY and IN6ADDR_ANY_INIT
|
||||
* are defined.
|
||||
*/
|
||||
|
||||
/***
|
||||
@@ -81,6 +82,13 @@
|
||||
#include <lwres/ipv6.h> /* Contractual promise. */
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XXXMLG
|
||||
*/
|
||||
#ifndef INADDR_LOOPBACK
|
||||
#define INADDR_LOOPBACK 0x7f000001UL
|
||||
#endif
|
||||
|
||||
LWRES_LANG_BEGINDECLS
|
||||
|
||||
const char *
|
||||
|
||||
Reference in New Issue
Block a user