diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-04-22 15:01:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-22 15:01:02 +0000 |
commit | 04b35e86d5cad45079fbea0ed1d6e9f0481cc976 (patch) | |
tree | 58f3ad87686816eb996d67d080bbb8fea3d0e38a /ares | |
parent | 64ab85da4fb9897bcfc7d0694b31f1a8c4621cc1 (diff) |
Fixed for Mac OS X builds based on excellent feedback from Heinz Stockinger.
Diffstat (limited to 'ares')
-rw-r--r-- | ares/ares_gethostbyname.c | 5 | ||||
-rw-r--r-- | ares/ares_parse_aaaa_reply.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c index daae5dbf6..b5867fdcd 100644 --- a/ares/ares_gethostbyname.c +++ b/ares/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> diff --git a/ares/ares_parse_aaaa_reply.c b/ares/ares_parse_aaaa_reply.c index df5f98cd6..ae68ca6ed 100644 --- a/ares/ares_parse_aaaa_reply.c +++ b/ares/ares_parse_aaaa_reply.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 <stdlib.h> #include <string.h> |