diff options
author | truelight <truelight@openttd.org> | 2005-04-13 18:36:29 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-04-13 18:36:29 +0000 |
commit | 7f4b636559e6c4b7a5ba6d34eff17965d57fa617 (patch) | |
tree | 1feedf8b6ef700e1b7b5e2cc1f04ce196e4206b5 | |
parent | 860242b811de9affc010d560d141ea1242c3550c (diff) | |
download | openttd-7f4b636559e6c4b7a5ba6d34eff17965d57fa617.tar.xz |
(svn r2191) -Add: OpenTTD now compiles with dietlibc (Aard)
-rw-r--r-- | network_core.h | 2 | ||||
-rw-r--r-- | unix.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/network_core.h b/network_core.h index 0ab9942c8..e442391fd 100644 --- a/network_core.h +++ b/network_core.h @@ -58,7 +58,7 @@ typedef struct ifreq IFREQ; # 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. @@ -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 |