summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrestis <orestisf1993@gmail.com>2019-01-23 11:59:09 +0200
committerGitHub <noreply@github.com>2019-01-23 11:59:09 +0200
commit3d5c908af51e3aa03ca79ff66b8882b57ccda610 (patch)
treee4c762cc496c69b9c0c6f7db82292919d3520f00
parenta57cdc84e2f38ea99fd464d8b5b6446c769cc545 (diff)
parent96923a5bc060c2195cdde25e77235410c69585e7 (diff)
Merge pull request #332 from eplanet/fix-macos-build
Fix non Linux build for #309
-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>