summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-22 15:01:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-22 15:01:02 +0000
commitfce7f4a6f229cf0320c1633fbd69a4b132bdd302 (patch)
tree65a4cb8796bc385c7e0b490079d9415a6f0593c9 /ares_gethostbyname.c
parent1a230e91e6c0839d8e0b93287c01a762c277d733 (diff)
downloadc-ares-fce7f4a6f229cf0320c1633fbd69a4b132bdd302.tar.gz
c-ares-fce7f4a6f229cf0320c1633fbd69a4b132bdd302.tar.bz2
c-ares-fce7f4a6f229cf0320c1633fbd69a4b132bdd302.zip
Fixed for Mac OS X builds based on excellent feedback from Heinz Stockinger.
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index daae5db..b5867fd 100644
--- a/ares_gethostbyname.c
+++ b/ares_gethostbyname.c
@@ -23,8 +23,13 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
+#ifdef HAVE_ARPA_NAMESER_H
#include <arpa/nameser.h>
#endif
+#ifdef HAVE_ARPA_NAMESER_COMPAT_H
+#include <arpa/nameser_compat.h>
+#endif
+#endif
#include <stdio.h>
#include <stdlib.h>