From eb557cbc75dafc5852f0aa5c1aa145b5ad514fbe Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 1 Mar 2002 23:54:52 +0000 Subject: [PATCH] (gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME. --- lib/gettime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gettime.c b/lib/gettime.c index 7b5a75aaf6..5280607330 100644 --- a/lib/gettime.c +++ b/lib/gettime.c @@ -28,7 +28,7 @@ int gettime (struct timespec *ts) { -#if defined CLOCK_REALTIME && HAVE_CLOCK_SETTIME +#if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME if (clock_gettime (CLOCK_REALTIME, ts) == 0) return 0; #endif -- 2.30.2