summaryrefslogtreecommitdiff
path: root/components/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/swap.c')
-rw-r--r--components/swap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/swap.c b/components/swap.c
index 2e8a6fb..49ba3cb 100644
--- a/components/swap.c
+++ b/components/swap.c
@@ -4,8 +4,8 @@
#include <stdlib.h>
#include <string.h>
-#include "../util.h"
#include "../slstatus.h"
+#include "../util.h"
#if defined(__linux__)
static int
@@ -199,11 +199,11 @@
return fmt_human(used * 1024, 1024);
}
#elif defined(__FreeBSD__)
+ #include <fcntl.h>
+ #include <kvm.h>
#include <stdlib.h>
#include <sys/types.h>
- #include <fcntl.h>
#include <unistd.h>
- #include <kvm.h>
static int getswapinfo(struct kvm_swap *swap_info, size_t size)
{