]> www.tinc-vpn.org Git - tinc/blobdiff - src/net_setup.c
Fix HAVE_DECL_RES_INIT conditionals.
[tinc] / src / net_setup.c
index d1d5c04be36ff5bfbbe002b106551a789a1635f2..3ed6fbb0deb12dfa1d01e583428c668522274d39 100644 (file)
@@ -664,7 +664,7 @@ static bool add_listen_address(char *address, bool bindto) {
        hint.ai_protocol = IPPROTO_TCP;
        hint.ai_flags = AI_PASSIVE;
 
-#ifdef HAVE_DECL_RES_INIT
+#if HAVE_DECL_RES_INIT
        res_init();
 #endif
        int err = getaddrinfo(address && *address ? address : NULL, port, &hint, &ai);