X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/7246dc4381c6c95454672a5c1aff65a02d6d3747..aced8326228ea3cf1673828a6e488b8f75108f45:/components/ram.c?ds=inline diff --git a/components/ram.c b/components/ram.c index f696039..a1fc3fe 100644 --- a/components/ram.c +++ b/components/ram.c @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +#if defined(__linux__) #include #include "../util.h" @@ -50,3 +51,4 @@ ram_used(void) bprintf("%f", (float)(total - free - buffers - cached) / 1024 / 1024) : NULL; } +#endif