From: eplanet Date: Wed, 23 Jan 2019 09:44:48 +0000 (+0100) Subject: Fix non Linux build for #309 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F332%2Fhead;p=i3%2Fi3status Fix non Linux build for #309 --- 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 +#if defined(__linux__) #include +#endif #include #include #include