From a9e1eeab54a455b6e694f3c55c808f1031e64e72 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 7b5a75a..5280607 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.7.4