summaryrefslogtreecommitdiff
path: root/src/get_load.c
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2009-08-31 19:34:57 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-09-01 12:39:49 +0200
commite565e313f79c78eb1be27ce6ea789011105cf549 (patch)
treedf19e857cc3320392b60077a71ea3a9d42d9939e /src/get_load.c
parent39b153fdd100088b567130a354824ef49b190009 (diff)
Support for (Debian) GNU/kFreeBSD
Diffstat (limited to 'src/get_load.c')
-rw-r--r--src/get_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_load.c b/src/get_load.c
index 4f04b94..2f58d9b 100644
--- a/src/get_load.c
+++ b/src/get_load.c
@@ -9,7 +9,7 @@ const char *get_load() {
static char part[512];
/* Get load */
-#if defined(__FreeBSD__) || defined(linux) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(sun)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(linux) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(sun)
double loadavg[3];
if (getloadavg(loadavg, 3) == -1)
errx(-1, "getloadavg() failed\n");