Merge pull request #323 from compnerd/CLOCK_MONOTONIC_COARSE

build: add check for CLOCK_MONOTONIC_COARSE
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f6dc028..eb30889 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -211,6 +211,7 @@
 check_symbol_exists(CLOCK_UPTIME_FAST "time.h" HAVE_DECL_CLOCK_UPTIME_FAST)
 check_symbol_exists(CLOCK_MONOTONIC "time.h" HAVE_DECL_CLOCK_MONOTONIC)
 check_symbol_exists(CLOCK_REALTIME "time.h" HAVE_DECL_CLOCK_REALTIME)
+check_symbol_exists(CLOCK_MONOTONIC_COARSE "time.h" HAVE_DECL_CLOCK_MONOTONIC_COARSE)
 check_symbol_exists(FD_COPY "sys/select.h" HAVE_DECL_FD_COPY)
 check_symbol_exists(NOTE_LOWAT "sys/event.h" HAVE_DECL_NOTE_LOWAT)
 check_symbol_exists(NOTE_NONE "sys/event.h" HAVE_DECL_NOTE_NONE)
diff --git a/cmake/config.h.in b/cmake/config.h.in
index a59737b..c858589 100644
--- a/cmake/config.h.in
+++ b/cmake/config.h.in
@@ -21,6 +21,10 @@
    you don't. */
 #cmakedefine01 HAVE_DECL_CLOCK_UPTIME_FAST
 
+/* Define to 1 if you have the declaration of `CLOCK_MONOTONIC_COARSE', and to
+   0 if you don't. */
+#cmakedefine01 HAVE_CLOCK_MONOTONIC_COARSE
+
 /* Define to 1 if you have the declaration of `FD_COPY', and to 0 if you
    don't. */
 #cmakedefine01 HAVE_DECL_FD_COPY