fix: add missing gmtime_r check (#1013)

909069ea82 introduced optional gmtime_r
support but did implement the function's availability check.
This commit is contained in:
Sergiu Deitsch 2023-12-30 22:07:29 +01:00 committed by GitHub
parent 93549f3600
commit d29d02e8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,6 +313,7 @@ endif (WITH_SYMBOLIZE)
# building the library.
add_compile_definitions (GLOG_NO_SYMBOLIZE_DETECTION)
check_cxx_symbol_exists (gmtime_r "cstdlib;ctime" HAVE_GMTIME_R)
check_cxx_symbol_exists (localtime_r "cstdlib;ctime" HAVE_LOCALTIME_R)
set (SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P})