diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c index daae5dbf..b5867fdc 100644 --- a/ares_gethostbyname.c +++ b/ares_gethostbyname.c @@ -23,8 +23,13 @@ #include #include #include +#ifdef HAVE_ARPA_NAMESER_H #include #endif +#ifdef HAVE_ARPA_NAMESER_COMPAT_H +#include +#endif +#endif #include #include diff --git a/ares_parse_aaaa_reply.c b/ares_parse_aaaa_reply.c index df5f98cd..ae68ca6e 100644 --- a/ares_parse_aaaa_reply.c +++ b/ares_parse_aaaa_reply.c @@ -23,8 +23,13 @@ #include #include #include +#ifdef HAVE_ARPA_NAMESER_H #include #endif +#ifdef HAVE_ARPA_NAMESER_COMPAT_H +#include +#endif +#endif #include #include