summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/powerpc/vfork.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/powerpc/vfork.S')
-rw-r--r--libc/sysdeps/linux/powerpc/vfork.S11
1 files changed, 4 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/powerpc/vfork.S b/libc/sysdeps/linux/powerpc/vfork.S
index a55b6fbc9..a79cf9e39 100644
--- a/libc/sysdeps/linux/powerpc/vfork.S
+++ b/libc/sysdeps/linux/powerpc/vfork.S
@@ -3,16 +3,13 @@
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#include <features.h>
+
#include <sys/syscall.h>
#ifndef __NR_vfork
-
/* No vfork so use fork instead */
-strong_alias(fork,__libc_fork)
-hidden_strong_alias(__libc_fork,__vfork)
-
-#else
+# define __NR_vfork __NR_fork
+#endif
.text
.global __vfork
@@ -27,6 +24,6 @@ __vfork:
b __syscall_error
.size __vfork,.-__vfork
-#endif
+
weak_alias(__vfork,vfork)
libc_hidden_def(vfork)