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
This commit is contained in:
David Webster 2004-10-20 19:26:11 +00:00
parent b320510f98
commit f6bc1c74e8

View File

@ -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