From a6c3c638acea34116c6be7cc4be41a9bc55a7fa1 Mon Sep 17 00:00:00 2001 From: Reuben Hawkins Date: Thu, 8 Jan 2015 12:00:56 -0800 Subject: configure.ac: check for clock_gettime and CLOCK_MONOTONIC Set or clear Makefile variables HAVE_CLOCK_GETTIME and HAVE_CLOCK_MONOTONIC based upon results of the checks (overriding default values from config.mak.uname). CLOCK_MONOTONIC isn't available on RHEL3, but there are still RHEL3 systems being used in production. Signed-off-by: Reuben Hawkins Reviewed-by: Eric Sunshine Signed-off-by: Junio C Hamano --- trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trace.c') diff --git a/trace.c b/trace.c index f6f9f3a367..1dc5c7c912 100644 --- a/trace.c +++ b/trace.c @@ -322,7 +322,7 @@ int trace_want(struct trace_key *key) return !!get_trace_fd(key); } -#ifdef HAVE_CLOCK_GETTIME +#if defined(HAVE_CLOCK_GETTIME) && defined(HAVE_CLOCK_MONOTONIC) static inline uint64_t highres_nanos(void) { -- cgit v1.2.3