2002-10-22 Jakub Jelinek <jakub@redhat.com>
authorroland <roland>
Tue, 22 Oct 2002 16:08:23 +0000 (16:08 +0000)
committerroland <roland>
Tue, 22 Oct 2002 16:08:23 +0000 (16:08 +0000)
* manager.c (pthread_start_thread): Call __uselocale even
if [! SHARED].  Patch by Leon Kanter <leon@geon.donetsk.ua>.

linuxthreads/manager.c

index cb9c33e..1d21760 100644 (file)
@@ -283,7 +283,7 @@ pthread_start_thread(void *arg)
       __sched_setscheduler(THREAD_GETMEM(self, p_pid),
                            SCHED_OTHER, &default_params);
     }
-#if !(USE_TLS && HAVE___THREAD) && defined SHARED
+#if !(USE_TLS && HAVE___THREAD)
   /* Initialize thread-locale current locale to point to the global one.
      With __thread support, the variable's initializer takes care of this.  */
   __uselocale (LC_GLOBAL_LOCALE);