diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-05-03 23:04:08 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:43 +0200 |
commit | a3516fe1a43318dca4e14178142174aa0eed6c30 (patch) | |
tree | c8dabe53b20a79c2ab0408cbe0bfde6d142e4786 /libpthread/linuxthreads/attr.c | |
parent | 4b06ff8e51f24313b8a24a2f9e2005ef13848964 (diff) |
linuxthreads: use __UCLIBC_HAS_TLS__ consistently
replace USE_TLS, HAVE___THREAD and USE___THREAD with __UCLIBC_HAS_TLS__
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libpthread/linuxthreads/attr.c')
-rw-r--r-- | libpthread/linuxthreads/attr.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |