feat/support_fiber #2

Merged
tqcq merged 57 commits from feat/support_fiber into master 2024-06-21 10:33:52 +08:00
Showing only changes of commit 417dcb145b - Show all commits

View File

@ -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)