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:
@@ -1709,7 +1709,11 @@ GSocketError GAddress_INET_SetPortName(GAddress *address, const char *port,
|
|||||||
return GSOCK_INVPORT;
|
return GSOCK_INVPORT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__WXPM__) && defined(__EMX__)
|
||||||
|
se = getservbyname(port, (char*)protocol);
|
||||||
|
#else
|
||||||
se = getservbyname(port, protocol);
|
se = getservbyname(port, protocol);
|
||||||
|
#endif
|
||||||
if (!se)
|
if (!se)
|
||||||
{
|
{
|
||||||
/* the cast to int suppresses compiler warnings about subscript having the
|
/* the cast to int suppresses compiler warnings about subscript having the
|
||||||
|
Reference in New Issue
Block a user