Просмотр исходного кода

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

Mike Frysinger 19 лет назад
Родитель
Сommit
5fd48aacb3
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      libc/sysdeps/linux/common/swapon.c

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

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