From 588e6bfb0e5d9a321009fd655c16e79997bdfde8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 8 Dec 2006 18:52:40 +0000 Subject: if __NR_swapoff does not exist, dont try and create a syscall for it --- libc/sysdeps/linux/common/swapoff.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libc/sysdeps') 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 _syscall1(int, swapoff, const char *, path); + +#endif -- cgit v1.2.3