Explorar o código

dont try to build fork if the arch doesnt support it (like ia64)

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

+ 2 - 0
libc/sysdeps/linux/common/fork.c

@@ -11,7 +11,9 @@
 #include <unistd.h>
 
 #ifdef __ARCH_HAS_MMU__
+#ifdef __NR_fork
 #define __NR___libc_fork __NR_fork
 _syscall0(pid_t, __libc_fork);
 weak_alias(__libc_fork, fork);
 #endif
+#endif