Browse Source

[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
personal/stbuehler/mod-csrf-old
Glenn Strauss 5 years ago
parent
commit
53d906968b
  1. 8
      src/CMakeLists.txt

8
src/CMakeLists.txt

@ -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…
Cancel
Save