Fixed compilation error on unknown type "in_addr_t".
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1705,7 +1705,7 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname)
|
|||||||
if (inet_aton(hostname, addr) == 0)
|
if (inet_aton(hostname, addr) == 0)
|
||||||
{
|
{
|
||||||
#elif defined(HAVE_INET_ADDR)
|
#elif defined(HAVE_INET_ADDR)
|
||||||
if ( (addr->s_addr = inet_addr(hostname)) == (in_addr_t)-1 )
|
if ( (addr->s_addr = inet_addr(hostname)) == (unsigned)-1 )
|
||||||
{
|
{
|
||||||
#else
|
#else
|
||||||
/* Use gethostbyname by default */
|
/* Use gethostbyname by default */
|
||||||
|
Reference in New Issue
Block a user