]> git.ozlabs.org Git - ccan/blobdiff - ccan/time/time.c
time: Change TIME_HAVE_MONOTONIC to be 0/1 rather than defined/undefined
[ccan] / ccan / time / time.c
index 27f0d52a30987df194ea710e8f4af6a4cd74dfc4..9810792280c775b2c2d49975739ae34c56af2b67 100644 (file)
@@ -28,7 +28,7 @@ struct timeabs time_now(void)
 struct timemono time_mono(void)
 {
        struct timemono ret;
-#ifdef TIME_HAVE_MONOTONIC
+#if TIME_HAVE_MONOTONIC
        clock_gettime(CLOCK_MONOTONIC, &ret.ts);
 #else /* Best we can do */
        ret.ts = time_now().ts;