summaryrefslogtreecommitdiffstats
path: root/Modules/getaddrinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/getaddrinfo.c')
-rw-r--r--Modules/getaddrinfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c
index 5aaa6e7..0b4620e 100644
--- a/Modules/getaddrinfo.c
+++ b/Modules/getaddrinfo.c
@@ -61,6 +61,9 @@
# define FAITH
#endif
+#ifdef HAVE_NETDB_H
+#define HAVE_GETADDRINFO 1
+
#define SUCCESS 0
#define GAI_ANY 0
#define YES 1
@@ -636,3 +639,5 @@ get_addr(hostname, af, res, pai, port0)
*res = NULL;
return error;
}
+
+#endif // HAVE_NETDB_H