]> granicus.if.org Git - curl/commitdiff
Make header inclusion depend on HAVE_*_H definition
authorYang Tse <yangsita@gmail.com>
Mon, 9 Nov 2009 12:56:50 +0000 (12:56 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 9 Nov 2009 12:56:50 +0000 (12:56 +0000)
ares/ares_free_hostent.c
ares/ares_private.h

index 623e1e247a939ce45fb7a256b8530e26b658da56..f07fd7c15badddc6cf37df499fa2e2f13af3860e 100644 (file)
@@ -18,7 +18,7 @@
 #include "ares_setup.h"
 #include <stdlib.h>
 
-#if !defined(WIN32) || defined(WATT32)
+#ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
 
index 036062dcdc27cdb9a3e79fb358292999bdec146a..37f3967e8ded7bb6dc6464dda65746552087ef22 100644 (file)
@@ -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