Skip to content

Commit

Permalink
fix: add missing gmtime_r check
Browse files Browse the repository at this point in the history
909069e introduced optional gmtime_r
support but did implement the function's availability check.
  • Loading branch information
sergiud committed Dec 30, 2023
1 parent e3f5398 commit f138254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit f138254

Please sign in to comment.