summaryrefslogtreecommitdiff
path: root/src/linux/swapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/swapon.c')
-rw-r--r--src/linux/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/swapon.c b/src/linux/swapon.c
index 5c75247f..2b40a30b 100644
--- a/src/linux/swapon.c
+++ b/src/linux/swapon.c
@@ -3,5 +3,5 @@
int swapon(const char *path, int flags)
{
- return syscall2(__NR_swapon, (long)path, flags);
+ return syscall(SYS_swapon, path, flags);
}