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:
Stefan Neis
2005-03-28 19:46:01 +00:00
parent 33cc6200a8
commit 8c0f890626

View File

@@ -1705,7 +1705,7 @@ GSocketError GAddress_INET_SetHostName(GAddress *address, const char *hostname)
if (inet_aton(hostname, addr) == 0)
{
#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
/* Use gethostbyname by default */