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, 8 insertions, 0 deletions
diff --git a/network_core.h b/network_core.h
index 855e5f2c3..98dcea13a 100644
--- a/network_core.h
+++ b/network_core.h
@@ -11,6 +11,14 @@
#ifdef ENABLE_NETWORK
+#ifdef __APPLE__
+#include <AvailabilityMacros.h>
+#if (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)
#include <winsock2.h>