summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-10-12 04:17:25 +0000
committerJim Meyering <jim@meyering.net>1996-10-12 04:17:25 +0000
commitd0909b6911788cca8fc227fbea76db48af6eaa55 (patch)
tree29f7f8294f7f80ee90100d8038c9e977ec4c53ee /src
parenta64289005dded577e49d42444a5def00c5c290b2 (diff)
downloadcoreutils-d0909b6911788cca8fc227fbea76db48af6eaa55.tar.xz
(print_uptime): Change #ifdef guard on getloadavg
call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG. From Kaveh R. Ghazi.
Diffstat (limited to 'src')
-rw-r--r--src/who-users.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/who-users.c b/src/who-users.c
index cdb53e6e2..90ae36b8e 100644
--- a/src/who-users.c
+++ b/src/who-users.c
@@ -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;