|
@@ -449,7 +449,9 @@ __pthread_init_max_stacksize(void)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#ifdef SHARED
|
|
|
+
|
|
|
+ * remove the USE_TLS guard if nptl is added */
|
|
|
+#if defined SHARED && defined USE_TLS
|
|
|
# if USE___THREAD
|
|
|
|
|
|
to give libpthread its own TLS segment just for this. */
|
|
@@ -587,7 +589,9 @@ static void pthread_initialize(void)
|
|
|
|
|
|
__pthread_smp_kernel = is_smp_system ();
|
|
|
|
|
|
-#ifdef SHARED
|
|
|
+
|
|
|
+ * remove the USE_TLS guard if nptl is added */
|
|
|
+#if defined SHARED && defined USE_TLS
|
|
|
|
|
|
*__libc_dl_error_tsd () = *(*GL(dl_error_catch_tsd)) ();
|
|
|
GL(dl_error_catch_tsd) = &__libc_dl_error_tsd;
|