diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-18 11:13:46 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-18 11:27:10 +0000 |
commit | cb3848b7dbb7eeb809898b2fccab3ff2f0696e6e (patch) | |
tree | d40832e33a9918965869902f517837e90e752c76 /CMakeLists.txt | |
parent | 753119c4a16f6dafacbeb3d98fe72133badca949 (diff) |
Use clock_gettime if it is available.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cac30aedd..52f983079 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -224,6 +224,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "DEBUG" OR CMAKE_BUILD_TYPE STREQUAL "RELWITHDEBINF endif() # Check for the existence of the following functions +check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) check_function_exists(umask HAVE_UMASK) check_function_exists(epoll_wait HAVE_EPOLL) check_function_exists(poll HAVE_POLL) |