]> git.tdb.fi Git - libs/net.git/blobdiff - source/resolve.cpp
Hide AF_* constants from the public header
[libs/net.git] / source / resolve.cpp
index 31b15fb9dd40ece09c09d2e25515bce25c2e00fd..3896db7a81a5d1c0a3be8ccef6667947e4b814f5 100644 (file)
@@ -37,7 +37,7 @@ SockAddr *resolve(const string &s, Family family)
                        host = s;
        }
 
-       addrinfo hints = {0, family, 0, 0, 0, 0, 0, 0};
+       addrinfo hints = { 0, family_to_sys(family), 0, 0, 0, 0, 0, 0 };
        addrinfo *res;
        const char *chost = (host.empty() ? 0 : host.c_str());
        const char *cserv = (serv.empty() ? 0 : serv.c_str());