aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_parse_a_reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_parse_a_reply.c')
-rw-r--r--ares/ares_parse_a_reply.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/ares/ares_parse_a_reply.c b/ares/ares_parse_a_reply.c
index 42c4ff7f2..85af99643 100644
--- a/ares/ares_parse_a_reply.c
+++ b/ares/ares_parse_a_reply.c
@@ -20,11 +20,21 @@
#if defined(WIN32) && !defined(WATT32)
#include "nameser.h"
#else
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
-#include <arpa/inet.h>
+#endif
+#ifdef HAVE_NETDB_H
#include <netdb.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
+#endif
#ifdef HAVE_ARPA_NAMESER_COMPAT_H
#include <arpa/nameser_compat.h>
#endif