From a4db401c4e61ba9db1e96fc670a7eb1ee7da2a5f Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Fri, 3 Jun 2005 03:07:52 +0000 Subject: Fix up include paths for compilation in uClibc. --- libpthread/nptl/sysdeps/mips/tls.h | 16 +++------------- libpthread/nptl/sysdeps/pthread/pthread.h | 4 ++++ .../nptl/sysdeps/unix/sysv/linux/mips/createthread.c | 4 ++++ 3 files changed, 11 insertions(+), 13 deletions(-) (limited to 'libpthread') diff --git a/libpthread/nptl/sysdeps/mips/tls.h b/libpthread/nptl/sysdeps/mips/tls.h index 2737488da..eb78bf5d0 100644 --- a/libpthread/nptl/sysdeps/mips/tls.h +++ b/libpthread/nptl/sysdeps/mips/tls.h @@ -20,14 +20,7 @@ #ifndef _TLS_H #define _TLS_H 1 -#if 0 -/* - * MIPS NPTL - defines a total of two symbols used by the glibc - * dynamic loader. Hopefully we will not need it for - * uClibc. - */ #include -#endif #ifndef __ASSEMBLER__ # include @@ -89,13 +82,10 @@ typedef union dtv # define TLS_DTV_AT_TP 1 /* Get the thread descriptor definition. */ -#if 0 -/* - * MIPS NPTL - we have different include paths than glibc. - */ -# include -#else +#ifdef __UCLIBC__ # include +#else +# include #endif typedef struct diff --git a/libpthread/nptl/sysdeps/pthread/pthread.h b/libpthread/nptl/sysdeps/pthread/pthread.h index 9bc104d31..7157e4718 100644 --- a/libpthread/nptl/sysdeps/pthread/pthread.h +++ b/libpthread/nptl/sysdeps/pthread/pthread.h @@ -26,7 +26,11 @@ #define __need_sigset_t #include #include +#ifdef __UCLIBC__ #include +#else +#include +#endif #include diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/createthread.c b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/createthread.c index 5b2234f47..d07d04e09 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/createthread.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/createthread.c @@ -21,4 +21,8 @@ + TLS_TCB_OFFSET + TLS_PRE_TCB_SIZE) /* Get the real implementation. */ +#ifdef __UCLIBC__ +#include +#else #include +#endif -- cgit v1.2.3