]> git.sur5r.net Git - i3/i3status/commitdiff
Fix non Linux build for #309 332/head
authoreplanet <emeric.planet@gmail.com>
Wed, 23 Jan 2019 09:44:48 +0000 (10:44 +0100)
committereplanet <emeric.planet@gmail.com>
Wed, 23 Jan 2019 09:44:48 +0000 (10:44 +0100)
src/print_cpu_usage.c

index 3c3c0d54b8b372abc80dbb15d51ad750bf86c890..a5021bfcbbb85afe724a8eec6fa9401fad86c377 100644 (file)
@@ -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>