summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-10-20 17:12:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-10-20 17:12:56 +0200
commit0fdfe82c6a1caa60ad11a5b916bbb38e68662d13 (patch)
tree9522c014ecf272d6fa6c57b0b9b29f7b67a7f698 /CMakeLists.txt
parentdead10b1b8c672091de007e25f21d1974e30ef93 (diff)
downloadcurl-0fdfe82c6a1caa60ad11a5b916bbb38e68662d13.tar.gz
cmake: unbreak for non-Windows platforms
Patch-by: Oliver Kuckertz Bug: http://curl.haxx.se/bug/view.cgi?id=1292
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a7ecacebf..761d9a473 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -783,6 +783,17 @@ else()
set(CURL_SIZEOF_CURL_SOCKLEN_T ${SIZEOF_INT})
endif()
+# TODO test which of these headers are required for the typedefs used in curlbuild.h
+if(WIN32)
+ set(CURL_PULL_WS2TCPIP_H ${HAVE_WS2TCPIP_H})
+else()
+ set(CURL_PULL_SYS_TYPES_H ${HAVE_SYS_TYPES_H})
+ set(CURL_PULL_SYS_SOCKET_H ${HAVE_SYS_SOCKET_H})
+ set(CURL_PULL_SYS_POLL_H ${HAVE_SYS_POLL_H})
+endif()
+set(CURL_PULL_STDINT_H ${HAVE_STDINT_H})
+set(CURL_PULL_INTTYPES_H ${HAVE_INTTYPES_H})
+
include(CMake/OtherTests.cmake)
add_definitions(-DHAVE_CONFIG_H)