diff options
author | eplanet <emeric.planet@gmail.com> | 2019-01-23 10:44:48 +0100 |
---|---|---|
committer | eplanet <emeric.planet@gmail.com> | 2019-01-23 10:44:48 +0100 |
commit | 96923a5bc060c2195cdde25e77235410c69585e7 (patch) | |
tree | e4c762cc496c69b9c0c6f7db82292919d3520f00 | |
parent | a57cdc84e2f38ea99fd464d8b5b6446c769cc545 (diff) |
Fix non Linux build for #309
-rw-r--r-- | src/print_cpu_usage.c | 2 |
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> |