From a3516fe1a43318dca4e14178142174aa0eed6c30 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 3 May 2011 23:04:08 +0200 Subject: linuxthreads: use __UCLIBC_HAS_TLS__ consistently replace USE_TLS, HAVE___THREAD and USE___THREAD with __UCLIBC_HAS_TLS__ Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libpthread/linuxthreads/attr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libpthread/linuxthreads/attr.c') diff --git a/libpthread/linuxthreads/attr.c b/libpthread/linuxthreads/attr.c index 52e115c8e..a621c2dcc 100644 --- a/libpthread/linuxthreads/attr.c +++ b/libpthread/linuxthreads/attr.c @@ -361,7 +361,7 @@ int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr) attr->__scope = PTHREAD_SCOPE_SYSTEM; #ifdef _STACK_GROWS_DOWN -# ifdef USE_TLS +# ifdef __UCLIBC_HAS_TLS__ attr->__stacksize = descr->p_stackaddr - (char *)descr->p_guardaddr - descr->p_guardsize; # else @@ -369,7 +369,7 @@ int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr) - descr->p_guardsize; # endif #else -# ifdef USE_TLS +# ifdef __UCLIBC_HAS_TLS__ attr->__stacksize = (char *)descr->p_guardaddr - descr->p_stackaddr; # else attr->__stacksize = (char *)descr->p_guardaddr - (char *)descr; @@ -385,7 +385,7 @@ int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr) otherwise the range of the stack area cannot be computed. */ attr->__stacksize += attr->__guardsize; #endif -#ifdef USE_TLS +#ifdef __UCLIBC_HAS_TLS__ attr->__stackaddr = descr->p_stackaddr; #else # ifndef _STACK_GROWS_UP @@ -395,7 +395,7 @@ int pthread_getattr_np (pthread_t thread, pthread_attr_t *attr) # endif #endif -#ifdef USE_TLS +#ifdef __UCLIBC_HAS_TLS__ if (attr->__stackaddr == NULL) #else if (descr == &__pthread_initial_thread) -- cgit v1.2.3