From 91031e8ce4ad31de42e9713f232f1363334d3761 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 9 Nov 2009 12:56:50 +0000 Subject: [PATCH] Make header inclusion depend on HAVE_*_H definition --- ares_free_hostent.c | 2 +- ares_private.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ares_free_hostent.c b/ares_free_hostent.c index 623e1e24..f07fd7c1 100644 --- a/ares_free_hostent.c +++ b/ares_free_hostent.c @@ -18,7 +18,7 @@ #include "ares_setup.h" #include -#if !defined(WIN32) || defined(WATT32) +#ifdef HAVE_NETDB_H #include #endif diff --git a/ares_private.h b/ares_private.h index 036062dc..37f3967e 100644 --- a/ares_private.h +++ b/ares_private.h @@ -30,7 +30,7 @@ #include #include -#if !defined(WIN32) || defined(WATT32) +#ifdef HAVE_NETINET_IN_H #include #endif