summaryrefslogtreecommitdiff
path: root/ares/ares_send.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
commitdb80e18308e40d3ef7f0f711be2de1ae23a34242 (patch)
tree5db2acdb2d9a85db4927ddf7d1abc5f5393199ab /ares/ares_send.c
parent3081207a4c5c63c8fa609295ff5941f33b26f1cb (diff)
downloadcurl-db80e18308e40d3ef7f0f711be2de1ae23a34242.tar.gz
include header file only when available
Diffstat (limited to 'ares/ares_send.c')
-rw-r--r--ares/ares_send.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ares/ares_send.c b/ares/ares_send.c
index 70518973a..6dc7b762b 100644
--- a/ares/ares_send.c
+++ b/ares/ares_send.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