From: David Webster Date: Wed, 20 Oct 2004 19:26:11 +0000 (+0000) Subject: getservbyname under INNOTEK gcc needs a (char*), not (const char*) for the protocol... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f6bc1c74e841072ad092e23034ff3ae5f137719a getservbyname under INNOTEK gcc needs a (char*), not (const char*) for the protocol argument git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index f857c3c176..ea83e5f4f9 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -117,7 +117,7 @@ int _System soclose(int); # endif #endif -#else +#else /* undefine for OSX - its really an int */ # ifdef __DARWIN__ # undef SOCKLEN_T @@ -1709,7 +1709,11 @@ GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port, return GSOCK_INVPORT; } +#if defined(__WXPM__) && defined(__EMX__) + se = getservbyname(port, (char*)protocol); +#else se = getservbyname(port, protocol); +#endif if (!se) { /* the cast to int suppresses compiler warnings about subscript having the