diff --git a/ares/ares_parse_srv_reply.c b/ares/ares_parse_srv_reply.c index 5b1e218d4..82fd8afa9 100644 --- a/ares/ares_parse_srv_reply.c +++ b/ares/ares_parse_srv_reply.c @@ -20,17 +20,25 @@ #include "setup.h" -#if defined(WIN32) && !defined(WATT32) -#include "nameser.h" -#else -#include -#include -#include -#include -#include -#ifdef HAVE_ARPA_NAMESER_COMPAT_H -#include +#ifdef HAVE_SYS_SOCKET_H +# include #endif +#ifdef HAVE_NETINET_IN_H +# include +#endif +#ifdef HAVE_NETDB_H +# include +#endif +#ifdef HAVE_ARPA_INET_H +# include +#endif +#ifdef HAVE_ARPA_NAMESER_H +# include +#else +# include "nameser.h" +#endif +#ifdef HAVE_ARPA_NAMESER_COMPAT_H +# include #endif #include