Loading CMake/OtherTests.cmake +14 −11 Original line number Original line Diff line number Diff line Loading @@ -179,6 +179,8 @@ int main(void) { include(CheckCSourceRuns) include(CheckCSourceRuns) # See HAVE_POLL in CMakeLists.txt for why poll is disabled on macOS if(NOT APPLE) set(CMAKE_REQUIRED_FLAGS) set(CMAKE_REQUIRED_FLAGS) if(HAVE_SYS_POLL_H) if(HAVE_SYS_POLL_H) set(CMAKE_REQUIRED_FLAGS "-DHAVE_SYS_POLL_H") set(CMAKE_REQUIRED_FLAGS "-DHAVE_SYS_POLL_H") Loading @@ -190,6 +192,7 @@ check_c_source_runs(" int main(void) { int main(void) { return poll((void *)0, 0, 10 /*ms*/); return poll((void *)0, 0, 10 /*ms*/); }" HAVE_POLL_FINE) }" HAVE_POLL_FINE) endif() set(HAVE_SIG_ATOMIC_T 1) set(HAVE_SIG_ATOMIC_T 1) set(CMAKE_REQUIRED_FLAGS) set(CMAKE_REQUIRED_FLAGS) Loading CMakeLists.txt +5 −1 Original line number Original line Diff line number Diff line Loading @@ -742,7 +742,11 @@ endif() check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME) check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME) check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET) check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET) # poll on macOS is unreliable, it first did not exist, then was broken until # fixed in 10.9 only to break again in 10.12. if(NOT APPLE) check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL) check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL) endif() check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT) check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT) check_symbol_exists(strdup "${CURL_INCLUDES}" HAVE_STRDUP) check_symbol_exists(strdup "${CURL_INCLUDES}" HAVE_STRDUP) check_symbol_exists(strstr "${CURL_INCLUDES}" HAVE_STRSTR) check_symbol_exists(strstr "${CURL_INCLUDES}" HAVE_STRSTR) Loading Loading
CMake/OtherTests.cmake +14 −11 Original line number Original line Diff line number Diff line Loading @@ -179,6 +179,8 @@ int main(void) { include(CheckCSourceRuns) include(CheckCSourceRuns) # See HAVE_POLL in CMakeLists.txt for why poll is disabled on macOS if(NOT APPLE) set(CMAKE_REQUIRED_FLAGS) set(CMAKE_REQUIRED_FLAGS) if(HAVE_SYS_POLL_H) if(HAVE_SYS_POLL_H) set(CMAKE_REQUIRED_FLAGS "-DHAVE_SYS_POLL_H") set(CMAKE_REQUIRED_FLAGS "-DHAVE_SYS_POLL_H") Loading @@ -190,6 +192,7 @@ check_c_source_runs(" int main(void) { int main(void) { return poll((void *)0, 0, 10 /*ms*/); return poll((void *)0, 0, 10 /*ms*/); }" HAVE_POLL_FINE) }" HAVE_POLL_FINE) endif() set(HAVE_SIG_ATOMIC_T 1) set(HAVE_SIG_ATOMIC_T 1) set(CMAKE_REQUIRED_FLAGS) set(CMAKE_REQUIRED_FLAGS) Loading
CMakeLists.txt +5 −1 Original line number Original line Diff line number Diff line Loading @@ -742,7 +742,11 @@ endif() check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME) check_symbol_exists(basename "${CURL_INCLUDES}" HAVE_BASENAME) check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET) check_symbol_exists(socket "${CURL_INCLUDES}" HAVE_SOCKET) # poll on macOS is unreliable, it first did not exist, then was broken until # fixed in 10.9 only to break again in 10.12. if(NOT APPLE) check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL) check_symbol_exists(poll "${CURL_INCLUDES}" HAVE_POLL) endif() check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT) check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT) check_symbol_exists(strdup "${CURL_INCLUDES}" HAVE_STRDUP) check_symbol_exists(strdup "${CURL_INCLUDES}" HAVE_STRDUP) check_symbol_exists(strstr "${CURL_INCLUDES}" HAVE_STRSTR) check_symbol_exists(strstr "${CURL_INCLUDES}" HAVE_STRSTR) Loading