diff --git a/ares_parse_srv_reply.c b/ares_parse_srv_reply.c index 5b1e218d..82fd8afa 100644 --- a/ares_parse_srv_reply.c +++ b/ares_parse_srv_reply.c @@ -20,17 +20,25 @@ #include "setup.h" -#if defined(WIN32) && !defined(WATT32) -#include "nameser.h" +#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 -#include -#include -#include -#include -#ifdef HAVE_ARPA_NAMESER_COMPAT_H -#include +# include "nameser.h" #endif +#ifdef HAVE_ARPA_NAMESER_COMPAT_H +# include #endif #include