mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r1259) -Fix: [Network] Network now compiles with glibc 2.1 (MacBaine)
This commit is contained in:
parent
1fa1a391dc
commit
ef32da999c
@ -61,6 +61,13 @@ typedef struct ifreq IFREQ;
|
||||
# define INADDR_NONE 0xffffffff
|
||||
# endif // SUNOS
|
||||
# endif // BEOS_NET_SERVER
|
||||
|
||||
/* GLibc 2.1 does not support GetIfAddr() */
|
||||
# if defined(__GLIBC__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ == 1)
|
||||
# undef HAVE_GETIFADDRS
|
||||
typedef uint32_t in_addr_t;
|
||||
# endif /* __GLIBC__ && (__GLIBC__ == 2) && (__GLIBC_MINOR__ == 1) */
|
||||
|
||||
# include <errno.h>
|
||||
# include <sys/time.h>
|
||||
# include <netdb.h>
|
||||
|
Loading…
Reference in New Issue
Block a user