summaryrefslogtreecommitdiff
path: root/swaponoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaponoff.c')
-rw-r--r--swaponoff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/swaponoff.c b/swaponoff.c
index 83aadd0..223436c 100644
--- a/swaponoff.c
+++ b/swaponoff.c
@@ -25,11 +25,13 @@
#include "internal.h"
#include <stdio.h>
#include <sys/mount.h>
-#include <sys/swap.h>
#include <mntent.h>
#include <dirent.h>
-#include <fstab.h>
#include <errno.h>
+#include <linux/unistd.h>
+
+_syscall2(int, swapon, const char *, path, int, flags);
+_syscall1(int, swapoff, const char *, path);
static int whichApp;