cmake: Adjusted test for time.h, added test of strtoll function

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 6 years ago
parent a005308e65
commit ac46856010
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -20,7 +20,9 @@ set( VERSION R14.1.0 )
include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckIncludeFiles )
include( CheckLibraryExists )
include( CheckFunctionExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )

@ -33,4 +33,10 @@ endif( WITH_GCC_VISIBILITY )
check_include_file( "sys/select.h" HAVE_SYS_SELECT_H )
check_include_file( "sys/time.h" HAVE_SYS_TIME_H )
check_include_file( "time.h" TIME_WITH_SYS_TIME )
check_include_files( "sys/time.h;time.h" TIME_WITH_SYS_TIME )
#### check for functions
check_function_exists( strtoll HAVE_STRTOLL )

@ -13,8 +13,8 @@
// Defined to 1 if you have 'sys/select.h' header
#cmakedefine HAVE_SYS_SELECT_H 1
// Defined to 1 if you have 'time.h' header
// Defined to 1 if 'time.h' header can be included together with 'sys/time.h'
#cmakedefine TIME_WITH_SYS_TIME 1
// We should have 'strtol, strtoll' in stdlib.h header or in cstdlib with c++
#define HAVE_STRTOLL 1
#cmakedefine HAVE_STRTOLL 1

Loading…
Cancel
Save