# HG changeset patch # User truelight # Date 2005-04-13 18:36:29 # Node ID 397187114acd7a4df381f905ec993dbe986b2710 # Parent 7e00ac71072af9b6e740d8d78034323dc01e9dbd (svn r2191) -Add: OpenTTD now compiles with dietlibc (Aard) diff --git a/network_core.h b/network_core.h --- a/network_core.h +++ b/network_core.h @@ -58,7 +58,7 @@ typedef struct ifreq IFREQ; # include // According to glibc/NEWS, 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. diff --git a/unix.c b/unix.c --- a/unix.c +++ b/unix.c @@ -12,7 +12,7 @@ #include #include -#if (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__linux__) +#if ((defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) || defined(__linux__)) && !defined(__dietlibc__) #define HAS_STATVFS #endif