summaryrefslogtreecommitdiff
path: root/src/print_cpu_usage.c
diff options
context:
space:
mode:
authoreplanet <emeric.planet@gmail.com>2019-01-23 10:44:48 +0100
committereplanet <emeric.planet@gmail.com>2019-01-23 10:44:48 +0100
commit96923a5bc060c2195cdde25e77235410c69585e7 (patch)
treee4c762cc496c69b9c0c6f7db82292919d3520f00 /src/print_cpu_usage.c
parenta57cdc84e2f38ea99fd464d8b5b6446c769cc545 (diff)
Fix non Linux build for #309
Diffstat (limited to 'src/print_cpu_usage.c')
-rw-r--r--src/print_cpu_usage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/print_cpu_usage.c b/src/print_cpu_usage.c
index 3c3c0d5..a5021bf 100644
--- a/src/print_cpu_usage.c
+++ b/src/print_cpu_usage.c
@@ -1,6 +1,8 @@
// vim:ts=4:sw=4:expandtab
#include <config.h>
+#if defined(__linux__)
#include <sys/sysinfo.h>
+#endif
#include <stdlib.h>
#include <limits.h>
#include <stdio.h>