Commit 58c5a352 authored by Rusty Russell's avatar Rusty Russell

time: update for new configurator.

HAVE_CLOCK_GETTIME_IN_LIBRT now implies HAVE_CLOCK_GETTIME.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 3d3e9b9c
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#if !HAVE_CLOCK_GETTIME && !HAVE_CLOCK_GETTIME_IN_LIBRT #if !HAVE_CLOCK_GETTIME
#include <sys/time.h> #include <sys/time.h>
struct timeabs time_now(void) struct timeabs time_now(void)
...@@ -23,7 +23,7 @@ struct timeabs time_now(void) ...@@ -23,7 +23,7 @@ struct timeabs time_now(void)
clock_gettime(CLOCK_REALTIME, &ret.ts); clock_gettime(CLOCK_REALTIME, &ret.ts);
return TIMEABS_CHECK(ret); return TIMEABS_CHECK(ret);
} }
#endif /* HAVE_CLOCK_GETTIME || HAVE_CLOCK_GETTIME_IN_LIBRT */ #endif /* HAVE_CLOCK_GETTIME */
struct timemono time_mono(void) struct timemono time_mono(void)
{ {
......
...@@ -66,7 +66,7 @@ struct timemono { ...@@ -66,7 +66,7 @@ struct timemono {
* Otherwise time_mono() just refers to time_now(). Your code might * Otherwise time_mono() just refers to time_now(). Your code might
* test this if you really need a monotonic clock. * 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 #define TIME_HAVE_MONOTONIC 1
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment