summaryrefslogtreecommitdiff
path: root/ares_expand_string.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-15 17:14:29 +0000
committerYang Tse <yangsita@gmail.com>2008-09-15 17:14:29 +0000
commitf2582d69495d9b418d096d14f9db205b004a49c3 (patch)
tree31abd504060626baa78a77bc72c01d5bb778bca0 /ares_expand_string.c
parent746f3e2942c36511fda867cac0573d2907290db0 (diff)
downloadc-ares-f2582d69495d9b418d096d14f9db205b004a49c3.tar.gz
c-ares-f2582d69495d9b418d096d14f9db205b004a49c3.tar.bz2
c-ares-f2582d69495d9b418d096d14f9db205b004a49c3.zip
include header file only when available
Diffstat (limited to 'ares_expand_string.c')
-rw-r--r--ares_expand_string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ares_expand_string.c b/ares_expand_string.c
index 0c7211b..5a3ae18 100644
--- a/ares_expand_string.c
+++ b/ares_expand_string.c
@@ -20,9 +20,13 @@
#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
+#endif
#include <string.h>
#include <stdlib.h>