/*
* 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
+#if defined( __WXMAC__ ) || defined ( __WXCOCOA__ )
+# if ( 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
#endif
/*
if (inet_aton(hostname, addr) == 0)
{
#elif defined(HAVE_INET_ADDR)
- if ( (addr->s_addr = inet_addr(hostname)) == -1 )
+ if ( (addr->s_addr = inet_addr(hostname)) == (in_addr_t)-1 )
{
#else
/* Use gethostbyname by default */