summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/CMake/CurlTests.c
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-09-17 19:21:47 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-09-17 19:21:47 (GMT)
commit9cbb9987371627841a8c508c0880f901a78e844a (patch)
treec95234acf6875f463574ac782048602a49accf52 /Utilities/cmcurl/CMake/CurlTests.c
parent1d81cf994a85ddc0cc6c0626928c33cb8d94ea6d (diff)
downloadCMake-9cbb9987371627841a8c508c0880f901a78e844a.zip
CMake-9cbb9987371627841a8c508c0880f901a78e844a.tar.gz
CMake-9cbb9987371627841a8c508c0880f901a78e844a.tar.bz2
ENH: add support for vs 2008 beta 2
Diffstat (limited to 'Utilities/cmcurl/CMake/CurlTests.c')
-rw-r--r--Utilities/cmcurl/CMake/CurlTests.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Utilities/cmcurl/CMake/CurlTests.c b/Utilities/cmcurl/CMake/CurlTests.c
index fed3894..c5ba7c2 100644
--- a/Utilities/cmcurl/CMake/CurlTests.c
+++ b/Utilities/cmcurl/CMake/CurlTests.c
@@ -306,9 +306,12 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
}
#endif
#ifdef HAVE_SOCKLEN_T
+#ifdef _WIN32
+#include <ws2tcpip.h>
+#else
#include <sys/types.h>
#include <sys/socket.h>
-
+#endif
int
main ()
{