all repos — slstatus @ cee6811036382215975792af4fa4f1624fc86a43

my build of slstatus (tools.suckless.org/slstatus/)

ram: Move up includes
Aaron Marcher me@drkhsh.at
Sun, 29 Apr 2018 20:00:38 +0200
commit

cee6811036382215975792af4fa4f1624fc86a43

parent

7baad64a4b26673b170b110899bdab0ebbdfd761

1 files changed, 6 insertions(+), 5 deletions(-)

jump to
M components/ram.ccomponents/ram.c

@@ -1,5 +1,11 @@

/* See LICENSE file for copyright and license details. */ #include <stdio.h> +#if defined (__OpenBSD__) +#include <sys/types.h> +#include <sys/sysctl.h> +#include <stdlib.h> +#include <unistd.h> +#endif #include "../util.h"

@@ -52,11 +58,6 @@ bprintf("%f", (float)(total - free - buffers - cached) / 1024 / 1024) :

NULL; } #elif defined(__OpenBSD__) -#include <sys/types.h> -#include <sys/sysctl.h> -#include <stdlib.h> -#include <unistd.h> - inline int load_uvmexp(struct uvmexp *uvmexp) {