Don't try to call res_init() if ./configure told us it doesn't exist.
[oweals/tinc.git] / src / netutl.c
index 8d4d26cce20b2b46c498b9fbebd0f607734567db..275c64f796e29321a39c86d709b42056cdb2f56e 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
        // ensure glibc reloads /etc/resolv.conf.
        res_init();
 #endif