Explorar o código

only build if we have fork

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

+ 4 - 0
libc/sysdeps/linux/common/vfork.c

@@ -2,6 +2,8 @@
 #include <unistd.h>
 #include <sys/types.h>
 
+#ifdef __NR_fork
+
 libc_hidden_proto(vfork)
 
 libc_hidden_proto(fork)
@@ -11,3 +13,5 @@ pid_t vfork(void)
     return fork();
 }
 libc_hidden_def(vfork)
+
+#endif