summaryrefslogtreecommitdiff
path: root/ext/standard/dns.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/dns.c')
-rw-r--r--ext/standard/dns.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index d370ce6fa8..c181885319 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -42,15 +42,21 @@
#include <winsock.h>
#else
#include <netinet/in.h>
+#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
+#endif
#include <netdb.h>
#ifdef _OSD_POSIX
#undef STATUS
#undef T_UNSPEC
#endif
+#if HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
+#endif
+#if HAVE_RESOLV_H
#include <resolv.h>
#endif
+#endif
#include "dns.h"