diff options
author | João Valverde <j@v6e.pt> | 2021-12-15 13:06:57 +0000 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-12-15 15:00:59 +0000 |
commit | fe30cf2f8afeec83ed52520f88ae7590f89bf42b (patch) | |
tree | bbf07f99c709f4a7e5c7ab657cccac37192d0500 /ConfigureChecks.cmake | |
parent | e877460a9e704f15c02716011107fe785457928e (diff) |
wsutil: Add portability wrapper for clock_gettime(CLOCK_REALTIME)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index b60c6dc39d..3c6e544dc9 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -81,6 +81,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.] endif() check_function_exists("clock_gettime" HAVE_CLOCK_GETTIME) +# Some platforms (macOS pre 10.15) are non-conformant with C11 and lack timespec_get() +check_function_exists("timespec_get" HAVE_TIMESPEC_GET) check_function_exists("getifaddrs" HAVE_GETIFADDRS) check_function_exists("issetugid" HAVE_ISSETUGID) check_function_exists("setresgid" HAVE_SETRESGID) |