summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-03-01 23:54:52 +0000
committerJim Meyering <jim@meyering.net>2002-03-01 23:54:52 +0000
commita9e1eeab54a455b6e694f3c55c808f1031e64e72 (patch)
treec91f520b4de04c5bc6a79ee5b45a7f84b07e5c0a /lib
parentb39517e205557dee92a3cdab8088ab0aab3ca28d (diff)
downloadcoreutils-a9e1eeab54a455b6e694f3c55c808f1031e64e72.tar.xz
(gettime): Test HAVE_CLOCK_GETTIME, not HAVE_CLOCK_SETTIME.
Diffstat (limited to 'lib')
-rw-r--r--lib/gettime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gettime.c b/lib/gettime.c
index 7b5a75aaf..528060733 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