summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/network_core.h b/network_core.h
index 4c92be82b..1b36b462d 100644
--- a/network_core.h
+++ b/network_core.h
@@ -7,6 +7,8 @@
// =============================
// Include standard stuff per OS
+#ifdef ENABLE_NETWORK
+
// Windows stuff
#if defined(WIN32)
#include <windows.h>
@@ -74,7 +76,7 @@ typedef struct ifreq IFREQ;
# endif
# endif // BEOS_NET_SERVER
-# if defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 1)
+# if !defined(__BEOS__) && defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 1)
typedef uint32_t in_addr_t;
# endif
@@ -171,4 +173,6 @@ static inline bool SetNoDelay(int d)
#endif
}
-#endif // NETWORK_CORE_H
+#endif /* ENABLE_NETWORK */
+
+#endif /* NETWORK_CORE_H */