summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-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 65ac8b16a..aba2f7cbb 100644
--- a/libc/sysdeps/linux/mips/clone.S
+++ b/libc/sysdeps/linux/mips/clone.S
@@ -20,6 +20,9 @@
/* clone() is even more special than fork() as it mucks with stacks
and invokes a function in the right context after its all over. */
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+#define RESET_PID
+#endif
#include <sys/asm.h>
#include <sysdep.h>
#define _ERRNO_H 1