diff options
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> |