aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-09 12:56:50 +0000
committerYang Tse <yangsita@gmail.com>2009-11-09 12:56:50 +0000
commit809f2a190cbef47810553892130666d8f0dff066 (patch)
treed85ce5e11cb19952b418b40053a5f4a59879366c
parent4f62cdf6f94fc36bb7af9573f9d2cc07fa822c4d (diff)
Make header inclusion depend on HAVE_*_H definition
-rw-r--r--ares/ares_free_hostent.c2
-rw-r--r--ares/ares_private.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ares/ares_free_hostent.c b/ares/ares_free_hostent.c
index 623e1e247..f07fd7c15 100644
--- a/ares/ares_free_hostent.c
+++ b/ares/ares_free_hostent.c
@@ -18,7 +18,7 @@
#include "ares_setup.h"
#include <stdlib.h>
-#if !defined(WIN32) || defined(WATT32)
+#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
diff --git a/ares/ares_private.h b/ares/ares_private.h
index 036062dcd..37f3967e8 100644
--- a/ares/ares_private.h
+++ b/ares/ares_private.h
@@ -30,7 +30,7 @@
#include <stdio.h>
#include <sys/types.h>
-#if !defined(WIN32) || defined(WATT32)
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif