]> git.saurik.com Git - wxWidgets.git/commitdiff
getservbyname under INNOTEK gcc needs a (char*), not (const char*) for the protocol...
authorDavid Webster <Dave.Webster@bhmi.com>
Wed, 20 Oct 2004 19:26:11 +0000 (19:26 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Wed, 20 Oct 2004 19:26:11 +0000 (19:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/gsocket.cpp

index f857c3c176107eb621662be1b9eeb355fd3d8410..ea83e5f4f995bdfc188da3216bf218f7d048928b 100644 (file)
@@ -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