diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-10 16:10:18 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-10 16:10:18 (GMT) |
commit | dce52e7c94ab4b301e1f6ce9341f29c733f495ba (patch) | |
tree | 18028e22caad44e601eff3d23abc87914990b76e /Source | |
parent | 6772b9f90b73b29472ba0be8bf550611663d0bf9 (diff) | |
download | CMake-dce52e7c94ab4b301e1f6ce9341f29c733f495ba.zip CMake-dce52e7c94ab4b301e1f6ce9341f29c733f495ba.tar.gz CMake-dce52e7c94ab4b301e1f6ce9341f29c733f495ba.tar.bz2 |
Fix nonblocking problem
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/Curl/CMakeLists.txt | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt index ea34d80..f8e970b 100644 --- a/Source/CTest/Curl/CMakeLists.txt +++ b/Source/CTest/Curl/CMakeLists.txt @@ -288,10 +288,10 @@ IF(NEED_REENTRANT) HAVE_GETHOSTBYNAME_R_3 HAVE_GETHOSTBYNAME_R_5 HAVE_GETHOSTBYNAME_R_6) - SET(${CURL_TEST} 0) - IF(${CURL_TEST}_REENTRANT) - SET(${CURL_TEST} 1) - ENDIF(${CURL_TEST}_REENTRANT) + SET(${CURL_TEST} 0) + IF(${CURL_TEST}_REENTRANT) + SET(${CURL_TEST} 1) + ENDIF(${CURL_TEST}_REENTRANT) ENDFOREACH(CURL_TEST) ENDIF(NEED_REENTRANT) @@ -308,6 +308,20 @@ IF(NOT HAVE_IN_ADDR_T) SET(in_addr_t "unsigned long") ENDIF(NOT HAVE_IN_ADDR_T) +SET(HAVE_SOME_NONBLOCK 0) +FOREACH(CURL_TEST + HAVE_FIONBIO + HAVE_IOCTLSOCKET + HAVE_IOCTLSOCKET_CASE + HAVE_O_NONBLOCK) + IF(${CURL_TEST}) + SET(HAVE_SOME_NONBLOCK 1) + ENDIF(${CURL_TEST}) +ENDFOREACH(CURL_TEST) +IF(NOT HAVE_SOME_NONBLOCK) + SET(HAVE_DISABLED_NONBLOCKING 1) +ENDIF(NOT HAVE_SOME_NONBLOCK) + IF(RETSIGTYPE_TEST) SET(RETSIGTYPE void) ELSE(RETSIGTYPE_TEST) |