summaryrefslogtreecommitdiff
path: root/src/minutils/s6-swapoff.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:44:14 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 13:44:14 +0000
commit54d4b6e74bf539930db2cafbe075416894900076 (patch)
tree29df64c4ff1eddc3c692b82556e3dde5dc2ae0ee /src/minutils/s6-swapoff.c
parent495d625add9e52b29a98c4fa2627a45d20d44849 (diff)
downloads6-linux-utils-54d4b6e74bf539930db2cafbe075416894900076.tar.xz
Fix a few omissions2.3.0.0
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