]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_uptime): Change #ifdef guard on getloadavg
authorJim Meyering <jim@meyering.net>
Sat, 12 Oct 1996 04:17:25 +0000 (04:17 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 12 Oct 1996 04:17:25 +0000 (04:17 +0000)
call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
From Kaveh R. Ghazi.

src/who-users.c

index cdb53e6e289250b6569c4d350f4cfecda0b92b0c..90ae36b8e5fe3e050cdc9f9ad97effd5aa33d2ca 100644 (file)
@@ -214,7 +214,7 @@ print_uptime (int n)
   printf (" %2d:%02d,  %d %s", uphours, upmins, entries,
          (entries == 1) ? _("user") : _("users"));
 
-#ifdef HAVE_GETLOADAVG
+#if defined (HAVE_GETLOADAVG) || defined (C_GETLOADAVG)
   loads = getloadavg (avg, 3);
 #else
   loads = -1;