Changeset - r10018:4ae2ad957aeb
[Not reviewed]
master
0 1 0
smatz - 16 years ago 2008-08-25 22:10:47
smatz@openttd.org
(svn r14177) -Fix: define INADDR_NONE only when it hasn't been defined yet
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/core/os_abstraction.h
Show inline comments
 
@@ -60,25 +60,25 @@ typedef unsigned long in_addr_t;
 
#		include <netinet/tcp.h>
 
#		include <arpa/inet.h>
 
#		include <net/if.h>
 
/* According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3. */
 
#		if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) && !defined(__INNOTEK_LIBC__) \
 
		   && !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__) && !defined(HPUX)
 
/* If for any reason ifaddrs.h does not exist on your system, comment out
 
 *   the following two lines and an alternative way will be used to fetch
 
 *   the list of IPs from the system. */
 
#			include <ifaddrs.h>
 
#			define HAVE_GETIFADDRS
 
#		endif
 
#		if defined(SUNOS) || defined(__MORPHOS__) || defined(__BEOS__)
 
#		if !defined(INADDR_NONE)
 
#			define INADDR_NONE 0xffffffff
 
#		endif
 
#		if defined(__BEOS__) && !defined(BEOS_NET_SERVER)
 
			/* needed on Zeta */
 
#			include <sys/sockio.h>
 
#		endif
 
#	endif /* BEOS_NET_SERVER */
 

	
 
#	if !defined(__BEOS__) && defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 1)
 
		typedef uint32_t in_addr_t;
 
#	endif
 

	
0 comments (0 inline, 0 general)