]> tinc-vpn.org Git - tinc/blobdiff - src/net_setup.c
Don't try to call res_init() if ./configure told us it doesn't exist.
[tinc] / src / net_setup.c
index 5a6eb72ae1117b82f700848254ed7e5e412e6f73..863616b72f9fe7902622bcb31c100ad1f997ffb5 100644 (file)
@@ -813,7 +813,7 @@ static bool setup_myself(void) {
                        hint.ai_protocol = IPPROTO_TCP;
                        hint.ai_flags = AI_PASSIVE;
 
-#ifdef HAVE_DECL_RES_INIT
+#if HAVE_DECL_RES_INIT
                        // ensure glibc reloads /etc/resolv.conf.
                        res_init();
 #endif