(svn r1259) -Fix: [Network] Network now compiles with glibc 2.1 (MacBaine)
authortruelight
Thu, 23 Dec 2004 19:23:56 +0000
changeset 789 85be14beeb57
parent 788 f7c5d8966d59
child 790 e19caa5f0ddf
(svn r1259) -Fix: [Network] Network now compiles with glibc 2.1 (MacBaine)
network_core.h
--- a/network_core.h	Thu Dec 23 18:28:13 2004 +0000
+++ b/network_core.h	Thu Dec 23 19:23:56 2004 +0000
@@ -61,6 +61,13 @@
 #			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>