X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ddc1a35fc927bff5b9f1a4ed7189e794e314fc05..e3e34b267b8ca66b2b8f6536c19668cf4cd2bdbf:/src/unix/gsocket.cpp diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 7864aa59f3..eb7b1b5678 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -101,6 +101,9 @@ int _System soclose(int); #ifdef sgi # include #endif +#ifdef _AIX +# include +#endif #include #ifndef SOCKLEN_T @@ -123,6 +126,18 @@ int _System soclose(int); #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. */ @@ -580,7 +595,6 @@ GSocket *GSocket::WaitConnection() 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;