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 | 42d8e8410b39c9f0ce2bf89df060fa5ece82e0c9 (patch) | |
tree | 4799043dc3a50980134763ad405adda574693d1f /network_core.h | |
parent | be65f908c8ffb2cf1e9787f302acd4fb6dfafd8d (diff) | |
download | openttd-42d8e8410b39c9f0ce2bf89df060fa5ece82e0c9.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> |