From 1adc1738f71db328568a830e384185bd47c4a0fe Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 10 Dec 2005 23:03:59 +0000 Subject: (svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default --- network_core.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'network_core.h') 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 +#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 -- cgit v1.2.3-54-g00ecf