]> git.saurik.com Git - wxWidgets.git/commitdiff
use AF_INET instead of PF_INET in wxGetFullHostName
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 12 Jun 2002 16:08:00 +0000 (16:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 12 Jun 2002 16:08:00 +0000 (16:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/utils.cpp

index 24199aca274a573d5ceebc68b6b2b31c0b93fa0e..185d3ebb9ef6472940bfb02f0cab98dd5e82ad5d 100644 (file)
@@ -188,7 +188,7 @@ bool wxGetFullHostName(wxChar *buf, int maxSize)
                 if ( pHostEnt )
                 {
                     // Windows will use DNS internally now
-                    pHostEnt = gethostbyaddr(pHostEnt->h_addr, 4, PF_INET);
+                    pHostEnt = gethostbyaddr(pHostEnt->h_addr, 4, AF_INET);
                 }
 
                 if ( pHostEnt )