From fd4fc981bbf2cdb26ec94991a1289f674bdfda75 Mon Sep 17 00:00:00 2001 From: drepper Date: Thu, 16 Jan 2003 18:16:32 +0000 Subject: [PATCH 1/1] (_pthread_initialize_minimal): Use GL(dl_tls_dtv_slotinfo_list) != NULL to check whether TLS has been already initialized. --- linuxthreads/pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index f72e20ee09..2888a6a2f7 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -305,7 +305,7 @@ __pthread_initialize_minimal(void) taken care of initializing the TLS data structures. */ __libc_setup_tls (TLS_TCB_SIZE, TLS_TCB_ALIGN); # elif !USE___THREAD - if (__builtin_expect (GL(dl_tls_max_dtv_idx) == 0, 0)) + if (__builtin_expect (GL(dl_tls_dtv_slotinfo_list) == NULL, 0)) { tcbhead_t *tcbp; -- 2.11.0