]> granicus.if.org Git - curl/commitdiff
Fixed for Mac OS X builds based on excellent feedback from Heinz Stockinger.
authorDaniel Stenberg <daniel@haxx.se>
Fri, 22 Apr 2005 15:01:02 +0000 (15:01 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 Apr 2005 15:01:02 +0000 (15:01 +0000)
ares/ares_gethostbyname.c
ares/ares_parse_aaaa_reply.c

index daae5dbf60f20c6161369d02c1571ca2488068c7..b5867fdcd418d13865cc5003d6005996ba5d9739 100644 (file)
 #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>
index df5f98cd62984e55d185d10f81430dd6afcb9f1a..ae68ca6ed78eba4fbc386fd6d1a017c3d3075c40 100644 (file)
 #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 <stdlib.h>
 #include <string.h>