diff options
author | Daniel Stenberg <daniel@haxx.se> | 2013-10-20 17:12:56 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2013-10-20 17:12:56 +0200 |
commit | 0fdfe82c6a1caa60ad11a5b916bbb38e68662d13 (patch) | |
tree | 9522c014ecf272d6fa6c57b0b9b29f7b67a7f698 /CMakeLists.txt | |
parent | dead10b1b8c672091de007e25f21d1974e30ef93 (diff) | |
download | curl-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.txt | 11 |
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) |