projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7baad64
)
ram: Move up includes
author
Aaron Marcher
<me@drkhsh.at>
Sun, 29 Apr 2018 18:00:38 +0000
(20:00 +0200)
committer
Aaron Marcher
<me@drkhsh.at>
Sun, 29 Apr 2018 18:00:38 +0000
(20:00 +0200)
components/ram.c
patch
|
blob
|
history
diff --git
a/components/ram.c
b/components/ram.c
index b2008823be926343b5a317549ed5164404e82f09..55ec5b9d0ad545d17532d1c187e0c07ee6803a33 100644
(file)
--- a/
components/ram.c
+++ b/
components/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
@@
ram_used(void)
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)
{