summaryrefslogtreecommitdiffstats
path: root/replace/getaddrinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'replace/getaddrinfo.h')
-rw-r--r--replace/getaddrinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/replace/getaddrinfo.h b/replace/getaddrinfo.h
index dddd699b6..cf040da2d 100644
--- a/replace/getaddrinfo.h
+++ b/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);