From f6bc1c74e841072ad092e23034ff3ae5f137719a Mon Sep 17 00:00:00 2001 From: David Webster Date: Wed, 20 Oct 2004 19:26:11 +0000 Subject: [PATCH] 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 --- src/unix/gsocket.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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