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