Explorar o código

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

Mike Frysinger %!s(int64=20) %!d(string=hai) anos
pai
achega
588e6bfb0e
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      libc/sysdeps/linux/common/swapoff.c

+ 5 - 0
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