time: update for new configurator.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 22 Jun 2014 23:49:08 +0000 (09:19 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 23 Jun 2014 00:57:23 +0000 (10:27 +0930)
HAVE_CLOCK_GETTIME_IN_LIBRT now implies HAVE_CLOCK_GETTIME.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/time/time.c
ccan/time/time.h

index 8e7fbffe739da0ba6cebed78b8c7624023269e1b..d0542f5654e86f06e69bc40c530ce0c989643e92 100644 (file)
@@ -3,7 +3,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 
-#if !HAVE_CLOCK_GETTIME && !HAVE_CLOCK_GETTIME_IN_LIBRT
+#if !HAVE_CLOCK_GETTIME
 #include <sys/time.h>
 
 struct timeabs time_now(void)
@@ -23,7 +23,7 @@ struct timeabs time_now(void)
        clock_gettime(CLOCK_REALTIME, &ret.ts);
        return TIMEABS_CHECK(ret);
 }
-#endif /* HAVE_CLOCK_GETTIME || HAVE_CLOCK_GETTIME_IN_LIBRT */
+#endif /* HAVE_CLOCK_GETTIME */
 
 struct timemono time_mono(void)
 {
index 287558d0c735d7150f4d24a9404c711b830b7f62..5c916f4c4c2ef04b9648791d862bb3eea731a6cd 100644 (file)
@@ -66,7 +66,7 @@ struct timemono {
  * Otherwise time_mono() just refers to time_now().  Your code might
  * test this if you really need a monotonic clock.
  */
-#if (HAVE_CLOCK_GETTIME || HAVE_CLOCK_GETTIME_IN_LIBRT) && defined(CLOCK_MONOTONIC)
+#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC)
 #define TIME_HAVE_MONOTONIC 1
 #endif