[hackers] [slstatus] ram: Move up includes || Aaron Marcher

From: <git_AT_suckless.org>
Date: Sun, 29 Apr 2018 20:06:53 +0200 (CEST)

commit cee6811036382215975792af4fa4f1624fc86a43
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Sun Apr 29 20:00:38 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Sun Apr 29 20:00:38 2018 +0200

    ram: Move up includes

diff --git a/components/ram.c b/components/ram.c
index b200882..55ec5b9 100644
--- a/components/ram.c
+++ b/components/ram.c
_AT_@ -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"
 
_AT_@ -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)
 {
Received on Sun Apr 29 2018 - 20:06:53 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 29 2018 - 20:12:29 CEST