summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/i386')
-rw-r--r--libc/sysdeps/linux/i386/syscall.S8
-rw-r--r--libc/sysdeps/linux/i386/vfork.S8
2 files changed, 8 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/i386/syscall.S b/libc/sysdeps/linux/i386/syscall.S
index c67b39ece..a70a99701 100644
--- a/libc/sysdeps/linux/i386/syscall.S
+++ b/libc/sysdeps/linux/i386/syscall.S
@@ -47,21 +47,21 @@ Lhere:
addl $_GLOBAL_OFFSET_TABLE_+[.-Lhere],%ebx
negl %eax
movl %eax,%ecx
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
call __errno_location@PLT
#else
movl errno@GOT(%ebx),%eax
-#endif /* _LIBC_REENTRANT */
+#endif /* __UCLIBC_HAS_THREADS__ */
movl %ecx,(%eax)
#else
negl %eax
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
movl %eax,%ecx
call __errno_location
movl %ecx,(%eax)
#else
movl %eax,errno
-#endif /* _LIBC_REENTRANT */
+#endif /* __UCLIBC_HAS_THREADS__ */
#endif /* PIC */
diff --git a/libc/sysdeps/linux/i386/vfork.S b/libc/sysdeps/linux/i386/vfork.S
index 10e95b170..176f25cc3 100644
--- a/libc/sysdeps/linux/i386/vfork.S
+++ b/libc/sysdeps/linux/i386/vfork.S
@@ -36,22 +36,22 @@ vfork:
addl $_GLOBAL_OFFSET_TABLE_+[.-.Lhere],%ebx
negl %eax
movl %eax,%ecx
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
call __errno_location@PLT
#else
movl errno@GOT(%ebx),%eax
-#endif /* _LIBC_REENTRANT */
+#endif /* __UCLIBC_HAS_THREADS__ */
movl %ecx,(%eax)
popl %ebx
#else
negl %eax
-#ifdef _LIBC_REENTRANT
+#ifdef __UCLIBC_HAS_THREADS__
movl %eax,%ecx
call __errno_location
movl %ecx,(%eax)
#else
movl %eax,errno
-#endif /* _LIBC_REENTRANT */
+#endif /* __UCLIBC_HAS_THREADS__ */
#endif /* PIC */