summaryrefslogtreecommitdiff
path: root/ares_expand_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares_expand_name.c')
-rw-r--r--ares_expand_name.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ares_expand_name.c b/ares_expand_name.c
index 3049970..9c05546 100644
--- a/ares_expand_name.c
+++ b/ares_expand_name.c
@@ -20,8 +20,12 @@
#if defined(WIN32) && !defined(WATT32)
#include "nameser.h"
#else
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
+#endif
#ifdef HAVE_ARPA_NAMESER_COMPAT_H
#include <arpa/nameser_compat.h>
#endif