From caa8ca7c9eeb847b6f85a77e1cb5a69dec6e558b Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 7 Oct 2004 07:59:09 -0400 Subject: [PATCH] COMP: Fix hostent redefined warning --- Source/CTest/Curl/hostip.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/CTest/Curl/hostip.h b/Source/CTest/Curl/hostip.h index ea9d0803c..545fec056 100644 --- a/Source/CTest/Curl/hostip.h +++ b/Source/CTest/Curl/hostip.h @@ -26,6 +26,10 @@ #include "setup.h" #include "hash.h" +#ifdef HAVE_NETDB_H +#include +#endif + /* * Setup comfortable CURLRES_* defines to use in the host*.c sources. */ @@ -106,7 +110,6 @@ typedef struct Curl_addrinfo Curl_addrinfo; #endif struct addrinfo; -struct hostent; struct SessionHandle; struct connectdata;