]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed compilation error on unknown type "in_addr_t".
authorStefan Neis <Stefan.Neis@t-online.de>
Mon, 28 Mar 2005 19:46:01 +0000 (19:46 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Mon, 28 Mar 2005 19:46:01 +0000 (19:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/gsocket.cpp

index 8b59a145cb09e497a9d4637cc4ad675582dd1bd5..5ff4d214428cc22b18218132c17d600934ff3dc2 100644 (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 */