aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S4
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S4
3 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a9faed6a3..76ebd99e84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+1999-01-31 Philip Blundell <philb@gnu.org>
+
+ * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: If the kernel
+ doesn't have vfork, resort to using fork.
+ * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
+
1999-01-30 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/sparc/sparc32/__longjmp.S: Include bits/setjmp.h not
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S b/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
index 898230cb42..feed06f225 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
+++ b/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S
@@ -19,7 +19,11 @@
#include <sysdep.h>
+#ifdef __NR_vfork
PSEUDO (__vfork, vfork, 0)
+#else
+PSEUDO (__vfork, fork, 0)
+#endif
sub %o1, 1, %o1
retl
and %o0, %o1, %o0
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
index 898230cb42..feed06f225 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S
@@ -19,7 +19,11 @@
#include <sysdep.h>
+#ifdef __NR_vfork
PSEUDO (__vfork, vfork, 0)
+#else
+PSEUDO (__vfork, fork, 0)
+#endif
sub %o1, 1, %o1
retl
and %o0, %o1, %o0