summaryrefslogtreecommitdiff
path: root/src/minutils/s6-swapoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/minutils/s6-swapoff.c')
-rw-r--r--src/minutils/s6-swapoff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minutils/s6-swapoff.c b/src/minutils/s6-swapoff.c
index 80df1ec..b6ba40b 100644
--- a/src/minutils/s6-swapoff.c
+++ b/src/minutils/s6-swapoff.c
@@ -1,6 +1,8 @@
/* ISC license. */
+#include <unistd.h>
#include <sys/types.h>
+#include <sys/swap.h>
#include <errno.h>
#include <skalibs/bytestr.h>
#include <skalibs/buffer.h>
@@ -9,8 +11,6 @@
#include <skalibs/djbunix.h>
#include <skalibs/skamisc.h>
-extern int swapoff (char const *) ;
-
#define USAGE "s6-swapoff device <or> s6-swapoff -a"
#define BUFSIZE 4095