projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't try to call res_init() if ./configure told us it doesn't exist.
[tinc]
/
src
/
net_setup.c
diff --git
a/src/net_setup.c
b/src/net_setup.c
index
5a6eb72
..
863616b
100644
(file)
--- a/
src/net_setup.c
+++ b/
src/net_setup.c
@@
-813,7
+813,7
@@
static bool setup_myself(void) {
hint.ai_protocol = IPPROTO_TCP;
hint.ai_flags = AI_PASSIVE;
hint.ai_protocol = IPPROTO_TCP;
hint.ai_flags = AI_PASSIVE;
-#if
def
HAVE_DECL_RES_INIT
+#if HAVE_DECL_RES_INIT
// ensure glibc reloads /etc/resolv.conf.
res_init();
#endif
// ensure glibc reloads /etc/resolv.conf.
res_init();
#endif