(svn r3286) -Fix: [OSX] 10.2 works again and universal binaries got 10.2 as target by default

This commit is contained in:
bjarni
2005-12-10 23:03:59 +00:00
parent be65f908c8
commit 42d8e8410b
5 changed files with 17 additions and 5 deletions

View File

@@ -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>