#ifdef sgi
# include <bstring.h>
#endif
+#ifdef _AIX
+# include <strings.h>
+#endif
#include <signal.h>
#ifndef SOCKLEN_T
#define SOCKOPTLEN_T SOCKLEN_T
#endif
+/*
+ * OSX 10.2 has int args instead of SOCKLENXXX_T
+ */
+#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
+
/*
* MSW defines this, Unices don't.
*/
err = _GAddress_translate_from(connection->m_peer, &from, fromlen);
if (err != GSOCK_NOERROR)
{
- GAddress_destroy(connection->m_peer);
delete connection;
m_error = err;
return NULL;