aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-10-16 08:57:50 +0000
committerUlrich Drepper <drepper@redhat.com>2002-10-16 08:57:50 +0000
commitac2dc5988663302fa32d2821502fed68a98a225b (patch)
tree9692db95fbb5ab3bad3d3b0b968146f4ead03551 /sysdeps/unix
parent885bc0246bfef6d3f9337c33d240e120ef1e5889 (diff)
downloadglibc-ac2dc5988663302fa32d2821502fed68a98a225b.tar
glibc-ac2dc5988663302fa32d2821502fed68a98a225b.tar.gz
glibc-ac2dc5988663302fa32d2821502fed68a98a225b.tar.bz2
glibc-ac2dc5988663302fa32d2821502fed68a98a225b.zip
Update.
2002-10-16 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER): Use __libc_errno only for libc itself.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/i386/sysdep.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h
index 4c907f2d4a..2057e5d4d2 100644
--- a/sysdeps/unix/sysv/linux/i386/sysdep.h
+++ b/sysdeps/unix/sysv/linux/i386/sysdep.h
@@ -111,10 +111,15 @@ __i686.get_pc_thunk.reg: \
# elif defined _LIBC_REENTRANT
# if USE___THREAD
+# ifndef NOT_IN_libc
+# define SYSCALL_ERROR_ERRNO __libc_errno
+# else
+# define SYSCALL_ERROR_ERRNO errno
+# endif
# define SYSCALL_ERROR_HANDLER \
0:SETUP_PIC_REG (cx); \
addl $_GLOBAL_OFFSET_TABLE_, %ecx; \
- movl __libc_errno@GOTNTPOFF(%ecx), %ecx; \
+ movl SYSCALL_ERROR_ERRNO@GOTNTPOFF(%ecx), %ecx; \
xorl %edx, %edx; \
subl %eax, %edx; \
movl %edx, %gs:0(%ecx); \