From: Jim Meyering Date: Fri, 1 Mar 2002 23:54:52 +0000 (+0000) Subject: (gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb557cbc75dafc5852f0aa5c1aa145b5ad514fbe;p=pspp (gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME. --- 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