summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/vfork.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/vfork.c b/libc/sysdeps/linux/common/vfork.c
index a85156d38..81bcfc175 100644
--- a/libc/sysdeps/linux/common/vfork.c
+++ b/libc/sysdeps/linux/common/vfork.c
@@ -6,7 +6,7 @@
#include <sys/syscall.h>
-#if (defined __NR_vfork || (defined __ARCH_USE_MMU__ && defined __NR_fork)) && (defined __USE_BSD || defined __USE_XOPEN_EXTENDED)
+#if (defined __NR_vfork || defined __NR_clone || (defined __ARCH_USE_MMU__ && defined __NR_fork)) && (defined __USE_BSD || defined __USE_XOPEN_EXTENDED)
# include <unistd.h>
extern __typeof(vfork) __vfork attribute_hidden;
@@ -20,12 +20,10 @@ pid_t __vfork(void)
NULL, NULL, NULL);
if (pid < 0)
- return -1
+ return -1;
return pid;
}
-weak_alias(__vfork, vfork)
-libc_hidden_weak(vfork)
# elif defined __NR_vfork
# define __NR___vfork __NR_vfork