[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:
Glenn Strauss 2016-07-06 13:57:24 -04:00
parent dd1ae42770
commit 53d906968b
1 changed files with 8 additions and 0 deletions

View File

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