Xinqi Bao's Git

Remove unnecessary headers
[slstatus.git] / components / ram.c
index f696039..a1fc3fe 100644 (file)
@@ -1,4 +1,5 @@
 /* See LICENSE file for copyright and license details. */
+#if defined(__linux__)
 #include <stdio.h>
 
 #include "../util.h"
@@ -50,3 +51,4 @@ ram_used(void)
               bprintf("%f", (float)(total - free - buffers - cached) / 1024 / 1024) :
               NULL;
 }
+#endif