From 8c0f8906261a5eb8975402bd4c3f3778db272ceb Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Mon, 28 Mar 2005 19:46:01 +0000 Subject: [PATCH] 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 --- src/unix/gsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 8b59a145cb..5ff4d21442 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -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 */ -- 2.45.2