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_db/td_ta_thr_iter.c | 2 +- libpthread/linuxthreads_db/td_thr_tls_get_addr.c | 2 +- libpthread/linuxthreads_db/td_thr_tlsbase.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread/linuxthreads_db') diff --git a/libpthread/linuxthreads_db/td_ta_thr_iter.c b/libpthread/linuxthreads_db/td_ta_thr_iter.c index 9ab04e14e..72b0ef916 100644 --- a/libpthread/linuxthreads_db/td_ta_thr_iter.c +++ b/libpthread/linuxthreads_db/td_ta_thr_iter.c @@ -40,7 +40,7 @@ handle_descr (const td_thragent_t *ta, td_thr_iter_f *callback, memset (&pds, '\0', sizeof (pds)); /* Empty thread descriptor the thread library would create. */ -#if !defined USE_TLS || !TLS_DTV_AT_TP +#if !defined __UCLIBC_HAS_TLS__ || !TLS_DTV_AT_TP pds.p_header.data.self = &pds; #endif pds.p_nextlive = pds.p_prevlive = &pds; diff --git a/libpthread/linuxthreads_db/td_thr_tls_get_addr.c b/libpthread/linuxthreads_db/td_thr_tls_get_addr.c index c900cac8e..742cdd8be 100644 --- a/libpthread/linuxthreads_db/td_thr_tls_get_addr.c +++ b/libpthread/linuxthreads_db/td_thr_tls_get_addr.c @@ -27,7 +27,7 @@ td_thr_tls_get_addr (const td_thrhandle_t *th __attribute__ ((unused)), size_t offset __attribute__ ((unused)), void **address __attribute__ ((unused))) { -#if USE_TLS +#ifdef __UCLIBC_HAS_TLS__ /* Read the module ID from the link_map. */ size_t modid; if (ps_pdread (th->th_ta_p->ph, diff --git a/libpthread/linuxthreads_db/td_thr_tlsbase.c b/libpthread/linuxthreads_db/td_thr_tlsbase.c index 00c863de2..76fd41900 100644 --- a/libpthread/linuxthreads_db/td_thr_tlsbase.c +++ b/libpthread/linuxthreads_db/td_thr_tlsbase.c @@ -30,7 +30,7 @@ td_thr_tlsbase (const td_thrhandle_t *th, if (modid < 1) return TD_NOTLS; -#if USE_TLS +#ifdef __UCLIBC_HAS_TLS__ union dtv pdtv, *dtvp; LOG ("td_thr_tlsbase"); -- cgit v1.2.3