OSDN Git Service

if __NR_swapon does not exist, dont try and create a syscall for it
authorMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2006 18:53:12 +0000 (18:53 -0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 8 Dec 2006 18:53:12 +0000 (18:53 -0000)
libc/sysdeps/linux/common/swapon.c

index d5a5c23..f8c1e6a 100644 (file)
@@ -8,5 +8,10 @@
  */
 
 #include "syscalls.h"
+
+#ifdef __NR_swapon
+
 #include <sys/swap.h>
 _syscall2(int, swapon, const char *, path, int, swapflags);
+
+#endif