parent
a86254b393
commit
17e61d4e3a
@ -46,7 +46,8 @@ endif()
|
|||||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
||||||
|
|
||||||
check_c_source_compiles("${_source_epilogue}
|
check_c_source_compiles("${_source_epilogue}
|
||||||
int main(void) {
|
int main(void)
|
||||||
|
{
|
||||||
int flag = MSG_NOSIGNAL;
|
int flag = MSG_NOSIGNAL;
|
||||||
(void)flag;
|
(void)flag;
|
||||||
return 0;
|
return 0;
|
||||||
@ -56,14 +57,15 @@ if(NOT WIN32)
|
|||||||
add_header_include(HAVE_SYS_TIME_H "sys/time.h")
|
add_header_include(HAVE_SYS_TIME_H "sys/time.h")
|
||||||
endif()
|
endif()
|
||||||
check_c_source_compiles("${_source_epilogue}
|
check_c_source_compiles("${_source_epilogue}
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
int main(void) {
|
int main(void)
|
||||||
|
{
|
||||||
struct timeval ts;
|
struct timeval ts;
|
||||||
ts.tv_sec = 0;
|
ts.tv_sec = 0;
|
||||||
ts.tv_usec = 0;
|
ts.tv_usec = 0;
|
||||||
(void)ts;
|
(void)ts;
|
||||||
return 0;
|
return 0;
|
||||||
}" HAVE_STRUCT_TIMEVAL)
|
}" HAVE_STRUCT_TIMEVAL)
|
||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
set(CMAKE_EXTRA_INCLUDE_FILES)
|
set(CMAKE_EXTRA_INCLUDE_FILES)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user