summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-08 18:52:40 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-08 18:52:40 +0000
commit588e6bfb0e5d9a321009fd655c16e79997bdfde8 (patch)
treed6b4e9d5f3a2336304fab809ec91064b428e1952 /libc/sysdeps/linux
parent1f9d3f3d860df1f13858c8b6eb45c329180ad630 (diff)
if __NR_swapoff does not exist, dont try and create a syscall for it
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/swapoff.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/swapoff.c b/libc/sysdeps/linux/common/swapoff.c
index 60df6e473..d921dfa9d 100644
--- a/libc/sysdeps/linux/common/swapoff.c
+++ b/libc/sysdeps/linux/common/swapoff.c
@@ -8,5 +8,10 @@
*/
#include "syscalls.h"
+
+#ifdef __NR_swapoff
+
#include <sys/swap.h>
_syscall1(int, swapoff, const char *, path);
+
+#endif