Use AF_UNSPEC instead of AF_UNKNOWN for unspecified local address in add_edge_h().
[oweals/tinc.git] / src / netutl.c
index 3ea5d4a279085adb346ceafcd8c60f2be69b4b35..bff734e13c79a942d8649642d0c25dd43c2a8f0e 100644 (file)
@@ -39,7 +39,7 @@ struct addrinfo *str2addrinfo(const char *address, const char *service, int sock
        hint.ai_family = addressfamily;
        hint.ai_socktype = socktype;
 
-#ifdef HAVE_DECL_RES_INIT
+#if HAVE_DECL_RES_INIT
        res_init();
 #endif
        err = getaddrinfo(address, service, &hint, &ai);