diff options
author | Orestis <orestisf1993@gmail.com> | 2019-01-23 11:59:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-23 11:59:09 +0200 |
commit | 3d5c908af51e3aa03ca79ff66b8882b57ccda610 (patch) | |
tree | e4c762cc496c69b9c0c6f7db82292919d3520f00 /src | |
parent | a57cdc84e2f38ea99fd464d8b5b6446c769cc545 (diff) | |
parent | 96923a5bc060c2195cdde25e77235410c69585e7 (diff) |
Merge pull request #332 from eplanet/fix-macos-build
Fix non Linux build for #309
Diffstat (limited to 'src')
-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> |