diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index dd874ef757..aeed5804a5 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -126,6 +126,16 @@ int _System soclose(int); #define SOCKOPTLEN_T SOCKLEN_T #endif +/* + * OSX 10.2 has int args instead of SOCKLENXXX_T + */ +#if defined( __WXMAC__ ) && ( MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 ) +#undef SOCKOPTLEN_T +#undef SOCKLEN_T +#define SOCKOPTLEN_T int +#define SOCKLEN_T int +#endif + /* * MSW defines this, Unices don't. */