diff options
Diffstat (limited to 'libpthread/nptl/sysdeps/mips')
-rw-r--r-- | libpthread/nptl/sysdeps/mips/jmpbuf-unwind.h | 4 | ||||
-rw-r--r-- | libpthread/nptl/sysdeps/mips/tls.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libpthread/nptl/sysdeps/mips/jmpbuf-unwind.h b/libpthread/nptl/sysdeps/mips/jmpbuf-unwind.h index 67cc96966..e882f13b2 100644 --- a/libpthread/nptl/sysdeps/mips/jmpbuf-unwind.h +++ b/libpthread/nptl/sysdeps/mips/jmpbuf-unwind.h @@ -27,4 +27,8 @@ ((uintptr_t) (_address) - (_adj) < (uintptr_t) (_jmpbuf)[0].__sp - (_adj)) /* We use the normal longjmp for unwinding. */ +#ifdef __UCLIBC__ +#define __libc_unwind_longjmp(buf, val) longjmp (buf, val) +#else #define __libc_unwind_longjmp(buf, val) __libc_longjmp (buf, val) +#endif diff --git a/libpthread/nptl/sysdeps/mips/tls.h b/libpthread/nptl/sysdeps/mips/tls.h index 3adfebccf..2a9dde161 100644 --- a/libpthread/nptl/sysdeps/mips/tls.h +++ b/libpthread/nptl/sysdeps/mips/tls.h @@ -61,7 +61,7 @@ typedef union dtv * NPTL - These defines would normally be handled by the top-level * configure script in glibc. */ -#ifdef __PTHREADS_NATIVE__ +#ifdef __UCLIBC__ #define HAVE_TLS_SUPPORT 1 #define HAVE_TLS_MODEL_ATTRIBUTE 1 #define HAVE___THREAD 1 @@ -84,6 +84,7 @@ typedef union dtv /* Get the thread descriptor definition. */ #ifdef __UCLIBC__ +# include <libc-symbols.h> # include <../../descr.h> #else # include <nptl/descr.h> |