Skip to content

Commit 518d936

Browse files
committed
build: add check for CLOCK_MONOTONIC_COARSE
This was added to the deprecated autotools build but not the CMake based build. Synchronize the two.
1 parent e245cbe commit 518d936

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ check_symbol_exists(CLOCK_UPTIME "time.h" HAVE_DECL_CLOCK_UPTIME)
211211
check_symbol_exists(CLOCK_UPTIME_FAST "time.h" HAVE_DECL_CLOCK_UPTIME_FAST)
212212
check_symbol_exists(CLOCK_MONOTONIC "time.h" HAVE_DECL_CLOCK_MONOTONIC)
213213
check_symbol_exists(CLOCK_REALTIME "time.h" HAVE_DECL_CLOCK_REALTIME)
214+
check_symbol_exists(CLOCK_MONOTONIC_COARSE "time.h" HAVE_DECL_CLOCK_MONOTONIC_COARSE)
214215
check_symbol_exists(FD_COPY "sys/select.h" HAVE_DECL_FD_COPY)
215216
check_symbol_exists(NOTE_LOWAT "sys/event.h" HAVE_DECL_NOTE_LOWAT)
216217
check_symbol_exists(NOTE_NONE "sys/event.h" HAVE_DECL_NOTE_NONE)

cmake/config.h.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
you don't. */
2222
#cmakedefine01 HAVE_DECL_CLOCK_UPTIME_FAST
2323

24+
/* Define to 1 if you have the declaration of `CLOCK_MONOTONIC_COARSE', and to
25+
0 if you don't. */
26+
#cmakedefine01 HAVE_CLOCK_MONOTONIC_COARSE
27+
2428
/* Define to 1 if you have the declaration of `FD_COPY', and to 0 if you
2529
don't. */
2630
#cmakedefine01 HAVE_DECL_FD_COPY

0 commit comments

Comments
 (0)