Fix HAVE_DECL_RES_INIT conditionals.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 14 Mar 2015 16:17:32 +0000 (16:17 +0000)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 14 Mar 2015 16:22:26 +0000 (16:22 +0000)
commit43b41e9095e6261c53da1ae46117d018296c3b68
tree94ec8795cf9aab27564a2a9597e4f6ec14e03df7
parent4989362300f800a6f407508f1e0127867cf80cba
Fix HAVE_DECL_RES_INIT conditionals.

HAVE_DECL_RES_INIT is generated using AC_CHECK_DECLS. tinc checks this
symbol using #ifdef, which is wrong because (according to autoconf docs)
the symbol is always defined, it's just set to zero if the check failed.

This broke the Windows build starting from
0b310bf406dbe58afe37fa31156b9ea47599d7be, because it introduced this
conditional in code that's not excluded from the Windows build.
src/net_setup.c
src/netutl.c