From ea5e5a10e8c2eba34dccb89ab625ee2f4a97e753 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 1 Feb 2006 01:29:20 +0000 Subject: correct __uselocale --- libpthread/linuxthreads/manager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpthread') 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; -- cgit v1.2.3