diff options
author | João Valverde <j@v6e.pt> | 2021-09-20 17:40:04 +0100 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-09-21 05:56:34 +0000 |
commit | 3164d4a646f0226306b397f6721e58a5f66c7bff (patch) | |
tree | 3fa41eaf88f570582dde9516d53d71fc13fdc04e /ConfigureChecks.cmake | |
parent | 2f7e3f1d82d7892bb5b742bbee725bae74e290ca (diff) |
MinGW-w64: Use clock_gettime()
Mingw-w64 has this function. We may have to define some extra symbols
for API visibility but on my system the config check is working out
of the box.
POSIX systems come in many flavours, remove the "save time" if()
condition in this case.
Fix code to check if we have clock_gettime() on Windows as well.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 58f3e5f6dd..1b8d28a695 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -80,19 +80,7 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.] check_function_exists("getexecname" HAVE_GETEXECNAME) endif() -# -# Check whether we have clock_gettime(). -# It's not on Windows, so don't waste time checking for it. -# It's in newer POSIX, so some, but not all, UN*Xes have it. -# -if (NOT WIN32) - # - # POSIX - don't bother checking on Windows, as checks - # take time. - # - check_function_exists("clock_gettime" HAVE_CLOCK_GETTIME) -endif (NOT WIN32) - +check_function_exists("clock_gettime" HAVE_CLOCK_GETTIME) check_function_exists("getifaddrs" HAVE_GETIFADDRS) check_function_exists("issetugid" HAVE_ISSETUGID) check_function_exists("setresgid" HAVE_SETRESGID) |