Don't try to call res_init() if ./configure told us it doesn't exist.
[tinc] / src / net_setup.c
index 5a6eb72..863616b 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