summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/manager.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-01 01:29:20 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-01 01:29:20 +0000
commitea5e5a10e8c2eba34dccb89ab625ee2f4a97e753 (patch)
treed55f42b89c9632f9ccdc38adb8a54d0f5d7eccb0 /libpthread/linuxthreads/manager.c
parentd9534af8dc90fc4f1a827738e713cedcf213fdc3 (diff)
correct __uselocale
Diffstat (limited to 'libpthread/linuxthreads/manager.c')
-rw-r--r--libpthread/linuxthreads/manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpthread/linuxthreads/manager.c b/libpthread/linuxthreads/manager.c
index 444c48169..ef6ffeecf 100644
--- a/libpthread/linuxthreads/manager.c
+++ b/libpthread/linuxthreads/manager.c
@@ -294,10 +294,12 @@ pthread_start_thread(void *arg)
__sched_setscheduler(THREAD_GETMEM(self, p_pid),
SCHED_OTHER, &default_params);
}
-#if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__
+#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. */
+#ifdef __UCLIBC_HAS_XLOCALE__
__uselocale (LC_GLOBAL_LOCALE);
+#endif
#else
/* Initialize __resp. */
__resp = &self->p_res;