From 8b48f745be1e086d6e486bbb8167e770f3d1fbc5 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 30 Jun 2010 04:10:37 -0700 Subject: mips/syscall-error: Choose the correct version for setting up errno. * Current function is a C protype and PSEUDO macro does not transfer syscall return parameters to correct argument registers for a C function. This causes problem with syscalls setting wrong value for errno when they encounter an error. * Fixes PR/2089 for mips/nptl Signed-off-by: Khem Raj --- libpthread/nptl/sysdeps/mips/Makefile.arch | 1 + 1 file changed, 1 insertion(+) (limited to 'libpthread') diff --git a/libpthread/nptl/sysdeps/mips/Makefile.arch b/libpthread/nptl/sysdeps/mips/Makefile.arch index 7a922b637..2992f35f1 100644 --- a/libpthread/nptl/sysdeps/mips/Makefile.arch +++ b/libpthread/nptl/sysdeps/mips/Makefile.arch @@ -15,6 +15,7 @@ CFLAGS-pt-raise.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 ASFLAGS-pthread_spin_lock.S = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 ASFLAGS-pthread_spin_trylock.S = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 ASFLAGS-nptl-sysdep.S = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 \ + -D_LIBC_REENTRANT \ -I$(top_srcdir)libc/sysdeps/linux/mips CFLAGS-mips = $(SSP_ALL_CFLAGS) -- cgit v1.2.3