diff options
author | bjarni <bjarni@openttd.org> | 2005-12-10 23:03:59 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-12-10 23:03:59 +0000 |
commit | 1adc1738f71db328568a830e384185bd47c4a0fe (patch) | |
tree | 4799043dc3a50980134763ad405adda574693d1f /network_core.h | |
parent | ad756fff551aa1e63a6a54e382bad12adf901a5e (diff) | |
download | openttd-1adc1738f71db328568a830e384185bd47c4a0fe.tar.xz |
(svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default
Diffstat (limited to 'network_core.h')
-rw-r--r-- | network_core.h | 8 |
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> |