X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftime%2Ftime.c;h=9810792280c775b2c2d49975739ae34c56af2b67;hp=27f0d52a30987df194ea710e8f4af6a4cd74dfc4;hb=294fb52e52d49538451087719354c4965bd8d49b;hpb=615189ae6de685ae6eb5a19b877340d731bba747 diff --git a/ccan/time/time.c b/ccan/time/time.c index 27f0d52a..98107922 100644 --- a/ccan/time/time.c +++ b/ccan/time/time.c @@ -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;