Browse Source

if __NR_swapoff does not exist, dont try and create a syscall for it

Mike Frysinger 19 years ago
parent
commit
588e6bfb0e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      libc/sysdeps/linux/common/swapoff.c

+ 5 - 0
libc/sysdeps/linux/common/swapoff.c

@@ -8,5 +8,10 @@
  */
  */
 
 
 #include "syscalls.h"
 #include "syscalls.h"
+
+#ifdef __NR_swapoff
+
 #include <sys/swap.h>
 #include <sys/swap.h>
 _syscall1(int, swapoff, const char *, path);
 _syscall1(int, swapoff, const char *, path);
+
+#endif