diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-12-08 18:52:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-12-08 18:52:40 +0000 |
commit | 588e6bfb0e5d9a321009fd655c16e79997bdfde8 (patch) | |
tree | d6b4e9d5f3a2336304fab809ec91064b428e1952 | |
parent | 1f9d3f3d860df1f13858c8b6eb45c329180ad630 (diff) |
if __NR_swapoff does not exist, dont try and create a syscall for it
-rw-r--r-- | libc/sysdeps/linux/common/swapoff.c | 5 |
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 |