From db80e18308e40d3ef7f0f711be2de1ae23a34242 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 15 Sep 2008 17:14:29 +0000 Subject: include header file only when available --- ares/ares_gethostbyaddr.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ares/ares_gethostbyaddr.c') diff --git a/ares/ares_gethostbyaddr.c b/ares/ares_gethostbyaddr.c index 7b4a733c3..1274d5acc 100644 --- a/ares/ares_gethostbyaddr.c +++ b/ares/ares_gethostbyaddr.c @@ -19,10 +19,21 @@ #if defined(WIN32) && !defined(WATT32) #include "nameser.h" #else +#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 +#endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include #endif -- cgit v1.2.3