summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/who-users.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/who-users.c b/src/who-users.c
index 74fb286d4..b9172d042 100644
--- a/src/who-users.c
+++ b/src/who-users.c
@@ -191,7 +191,12 @@ print_uptime (int n)
printf (" %2d:%02d, %d %s", uphours, upmins, entries,
(entries == 1) ? _("user") : _("users"));
+#ifdef HAVE_GETLOADAVG
loads = getloadavg (avg, 3);
+#else
+ loads = -1;
+#endif
+
if (loads == -1)
putchar ('\n');
else