diff options
author | Aaron Marcher <me@drkhsh.at> | 2018-04-29 20:00:38 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-04-29 20:00:38 +0200 |
commit | cee6811036382215975792af4fa4f1624fc86a43 (patch) | |
tree | 15d3d173cd44b200eeb5077aa7b36fc4fcca54aa /components/ram.c | |
parent | 7baad64a4b26673b170b110899bdab0ebbdfd761 (diff) |
ram: Move up includes
Diffstat (limited to 'components/ram.c')
-rw-r--r-- | components/ram.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/components/ram.c b/components/ram.c index b200882..55ec5b9 100644 --- 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) { |