1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-06 00:29:44 +02:00

(gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME.

This commit is contained in:
Jim Meyering
2002-03-01 23:54:52 +00:00
parent b39517e205
commit a9e1eeab54
+1 -1
View File
@@ -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