feat/support_fiber #2
13
third_party/curl/CMake/OtherTests.cmake
vendored
13
third_party/curl/CMake/OtherTests.cmake
vendored
@ -72,6 +72,19 @@ check_c_source_compiles("${_source_epilogue}
|
||||
(void)ts;
|
||||
return 0;
|
||||
}" HAVE_STRUCT_TIMEVAL)
|
||||
if (HAVE_SYS_TIME_H)
|
||||
check_c_source_compiles("${_source_epilogue}
|
||||
#include <sys/time.h>
|
||||
int main(void)
|
||||
{
|
||||
struct timeval ts;
|
||||
ts.tv_sec = 0;
|
||||
ts.tv_usec = 0;
|
||||
(void)ts;
|
||||
return 0;
|
||||
}" HAVE_STRUCT_TIMEVAL_BY_SYS_TIMEVAL)
|
||||
set(HAVE_STRUCT_TIMEVAL ${HAVE_STRUCT_TIMEVAL_BY_SYS_TIMEVAL})
|
||||
endif()
|
||||
|
||||
unset(CMAKE_TRY_COMPILE_TARGET_TYPE)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user