(svn r2191) -Add: OpenTTD now compiles with dietlibc (Aard)
authortruelight
Wed, 13 Apr 2005 18:36:29 +0000
changeset 1687 521050dcd91e
parent 1686 37f64f8b0641
child 1688 af2bb9bcb2ed
(svn r2191) -Add: OpenTTD now compiles with dietlibc (Aard)
network_core.h
unix.c
--- a/network_core.h	Wed Apr 13 13:09:25 2005 +0000
+++ b/network_core.h	Wed Apr 13 18:36:29 2005 +0000
@@ -58,7 +58,7 @@
 #		include <net/if.h>
 // According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3.
 #		if !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) \
-		   && !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2))
+		   && !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__)
 // 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.
--- a/unix.c	Wed Apr 13 13:09:25 2005 +0000
+++ b/unix.c	Wed Apr 13 18:36:29 2005 +0000
@@ -12,7 +12,7 @@
 #include <pwd.h>
 #include <signal.h>
 
-#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__linux__)
+#if ((defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__linux__)) && !defined(__dietlibc__)
 	#define HAS_STATVFS
 #endif