X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/7246dc4381c6c95454672a5c1aff65a02d6d3747..198df15d83d41fddca5b639bea398349ec0ec534:/components/ram.c 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