From f5b68e2d9dcb34e94736565d231871d06c86250e Mon Sep 17 00:00:00 2001 From: truelight Date: Thu, 23 Dec 2004 19:23:56 +0000 Subject: [PATCH] (svn r1259) -Fix: [Network] Network now compiles with glibc 2.1 (MacBaine) --- network_core.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/network_core.h b/network_core.h index 49c290eb16..c426b1957e 100644 --- a/network_core.h +++ b/network_core.h @@ -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 # include # include