mirror of https://github.com/OpenTTD/OpenTTD
(svn r2191) -Add: OpenTTD now compiles with dietlibc (Aard)
parent
860242b811
commit
7f4b636559
|
@ -58,7 +58,7 @@ typedef struct ifreq IFREQ;
|
||||||
# include <net/if.h>
|
# include <net/if.h>
|
||||||
// According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3.
|
// According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3.
|
||||||
# if !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) \
|
# 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
|
// 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 following two lines and an alternative way will be used to fetch
|
||||||
// the list of IPs from the system.
|
// the list of IPs from the system.
|
||||||
|
|
2
unix.c
2
unix.c
|
@ -12,7 +12,7 @@
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <signal.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
|
#define HAS_STATVFS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue