(_pthread_initialize_minimal): Use GL(dl_tls_dtv_slotinfo_list) != NULL to
[kopensolaris-gnu/glibc.git] / linuxthreads / pthread.c
index f72e20e..2888a6a 100644 (file)
@@ -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;