summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/swapon.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-08 18:53:12 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-08 18:53:12 +0000
commit5fd48aacb3fd2f71aff393d4f8498319d8a7bfed (patch)
tree8e31e47e32ae6e3045726931d3f91e8ff4ca3155 /libc/sysdeps/linux/common/swapon.c
parent588e6bfb0e5d9a321009fd655c16e79997bdfde8 (diff)
if __NR_swapon does not exist, dont try and create a syscall for it
Diffstat (limited to 'libc/sysdeps/linux/common/swapon.c')
-rw-r--r--libc/sysdeps/linux/common/swapon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/swapon.c b/libc/sysdeps/linux/common/swapon.c
index d5a5c235a..f8c1e6a2b 100644
--- a/libc/sysdeps/linux/common/swapon.c
+++ b/libc/sysdeps/linux/common/swapon.c
@@ -8,5 +8,10 @@
*/
#include "syscalls.h"
+
+#ifdef __NR_swapon
+
#include <sys/swap.h>
_syscall2(int, swapon, const char *, path, int, swapflags);
+
+#endif