time: Change TIME_HAVE_MONOTONIC to be 0/1 rather than defined/undefined
[ccan] / ccan / time / time.h
index 70ebdc9a7751ca5be434329421618c58f177c9c7..6ab61a99c3a5108fc1a391b2549178c536cf60c9 100644 (file)
@@ -71,6 +71,8 @@ struct timemono {
  */
 #if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC)
 #define TIME_HAVE_MONOTONIC 1
+#else
+#define TIME_HAVE_MONOTONIC 0
 #endif
 
 struct timespec time_check_(struct timespec in, const char *abortstr);