diff options
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) |