Commit dce52e7c authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Fix nonblocking problem

parent 6772b9f9
...@@ -288,10 +288,10 @@ IF(NEED_REENTRANT) ...@@ -288,10 +288,10 @@ IF(NEED_REENTRANT)
HAVE_GETHOSTBYNAME_R_3 HAVE_GETHOSTBYNAME_R_3
HAVE_GETHOSTBYNAME_R_5 HAVE_GETHOSTBYNAME_R_5
HAVE_GETHOSTBYNAME_R_6) HAVE_GETHOSTBYNAME_R_6)
SET(${CURL_TEST} 0) SET(${CURL_TEST} 0)
IF(${CURL_TEST}_REENTRANT) IF(${CURL_TEST}_REENTRANT)
SET(${CURL_TEST} 1) SET(${CURL_TEST} 1)
ENDIF(${CURL_TEST}_REENTRANT) ENDIF(${CURL_TEST}_REENTRANT)
ENDFOREACH(CURL_TEST) ENDFOREACH(CURL_TEST)
ENDIF(NEED_REENTRANT) ENDIF(NEED_REENTRANT)
...@@ -308,6 +308,20 @@ IF(NOT HAVE_IN_ADDR_T) ...@@ -308,6 +308,20 @@ IF(NOT HAVE_IN_ADDR_T)
SET(in_addr_t "unsigned long") SET(in_addr_t "unsigned long")
ENDIF(NOT HAVE_IN_ADDR_T) 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) IF(RETSIGTYPE_TEST)
SET(RETSIGTYPE void) SET(RETSIGTYPE void)
ELSE(RETSIGTYPE_TEST) ELSE(RETSIGTYPE_TEST)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment