[autobuild] CMake check for struct tm tm_gmtoff (fixes #2014)
x-ref: "cmake scripts don't HAVE_STRUCT_TM_GMTOFF -> wrong timezone" https://redmine.lighttpd.net/issues/2014
This commit is contained in:
parent
dd1ae42770
commit
53d906968b
|
@ -173,6 +173,14 @@ check_c_source_compiles("
|
|||
__dummy(x);
|
||||
}
|
||||
" HAVE_WEAK_SYMBOLS)
|
||||
check_c_source_compiles("
|
||||
#include <time.h>
|
||||
int main(void) {
|
||||
struct tm t;
|
||||
t.tm_gmtoff = 0;
|
||||
return 0;
|
||||
}
|
||||
" HAVE_STRUCT_TM_GMTOFF)
|
||||
|
||||
## refactor me
|
||||
macro(XCONFIG _package _include_DIR _link_DIR _link_FLAGS _cflags)
|
||||
|
|
Loading…
Reference in New Issue