diff --git a/cmake/bitcoin-config.h.in b/cmake/bitcoin-config.h.in index 2458b8fad0327..676e83ebea378 100644 --- a/cmake/bitcoin-config.h.in +++ b/cmake/bitcoin-config.h.in @@ -76,9 +76,6 @@ /* Define this symbol if the Linux getrandom function call is available */ #cmakedefine HAVE_GETRANDOM 1 -/* Define this symbol if gmtime_r is available */ -#cmakedefine HAVE_GMTIME_R 1 - /* Define this symbol if you have malloc_info */ #cmakedefine HAVE_MALLOC_INFO 1 diff --git a/cmake/introspection.cmake b/cmake/introspection.cmake index 6a99032799992..950a85daccb5e 100644 --- a/cmake/introspection.cmake +++ b/cmake/introspection.cmake @@ -52,32 +52,6 @@ endif() include(TestAppendRequiredLibraries) test_append_atomic_library(core_interface) -# Check for gmtime_r(), fallback to gmtime_s() if that is unavailable. -# Fail if neither are available. -check_cxx_source_compiles(" - #include - - int main() - { - gmtime_r((const time_t*)nullptr, (struct tm*)nullptr); - } - " HAVE_GMTIME_R -) -if(NOT HAVE_GMTIME_R) - check_cxx_source_compiles(" - #include - - int main() - { - gmtime_s((struct tm*)nullptr, (const time_t*)nullptr); - } - " HAVE_GMTIME_S - ) - if(NOT HAVE_GMTIME_S) - message(FATAL_ERROR "Both gmtime_r and gmtime_s are unavailable.") - endif() -endif() - check_cxx_symbol_exists(std::system "cstdlib" HAVE_STD_SYSTEM) check_cxx_symbol_exists(::_wsystem "stdlib.h" HAVE__WSYSTEM) if(HAVE_STD_SYSTEM OR HAVE__WSYSTEM)