summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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