* getloadavg.c: Sync with Emacs and then change to conform to GNU coding style.
[gnulib.git] / lib / gettime.c
index 7b5a75a..5280607 100644 (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