summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/mips/clone.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/clone.S b/libc/sysdeps/linux/mips/clone.S
index 8486da783..65ac8b16a 100644
--- a/libc/sysdeps/linux/mips/clone.S
+++ b/libc/sysdeps/linux/mips/clone.S
@@ -102,6 +102,9 @@ NESTED(__clone,4*SZREG,sp)
/* Something bad happened -- no child created */
L(error):
+#ifdef __UCLIBC__
+ move a0,v0
+#endif
#ifdef __PIC__
PTR_LA t9,__syscall_error
RESTORE_GP64