Sfoglia il codice sorgente

COMP: Fix hostent redefined warning

Andy Cedilnik 21 anni fa
parent
commit
caa8ca7c9e
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      Source/CTest/Curl/hostip.h

+ 4 - 1
Source/CTest/Curl/hostip.h

@@ -26,6 +26,10 @@
 #include "setup.h"
 #include "hash.h"
 
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#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;