summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/getaddrinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/replace/getaddrinfo.h b/lib/replace/getaddrinfo.h
index dddd699b62..cf040da2db 100644
--- a/lib/replace/getaddrinfo.h
+++ b/lib/replace/getaddrinfo.h
@@ -75,7 +75,9 @@ in lib/replace we use rep_xxx()
#undef getnameinfo
#endif
#define getnameinfo rep_getnameinfo
+#ifndef HAVE_GETNAMEINFO
#define HAVE_GETNAMEINFO
+#endif
extern int rep_getaddrinfo(const char *node, const char *service,
const struct addrinfo * hints, struct addrinfo ** res);