Browse Source

only build if we have fork

Mike Frysinger 19 years ago
parent
commit
3ea3326bcd
1 changed files with 4 additions and 0 deletions
  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