summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/network_core.h b/network_core.h
index 98dcea13a..7a9dd4e42 100644
--- a/network_core.h
+++ b/network_core.h
@@ -11,13 +11,10 @@
#ifdef ENABLE_NETWORK
-#ifdef __APPLE__
-#include <AvailabilityMacros.h>
-#if (MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_2)
+#if defined(__APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED == MAC_OS_X_VERSION_10_2)
// OSX 10.2 don't have socklen_t defined, so we will define it here
typedef int socklen_t;
#endif
-#endif
// Windows stuff
#if defined(WIN32) || defined(WIN64)