From 167d569420c674556ca4e94937fbd4c104081085 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 31 Jan 2006 22:32:17 +0000 Subject: pt-allocrtsig.c is irrelevant for now, remove related too, add libc_hidden_proto from old version --- libpthread/linuxthreads/manager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libpthread/linuxthreads/manager.c') diff --git a/libpthread/linuxthreads/manager.c b/libpthread/linuxthreads/manager.c index d854610db..444c48169 100644 --- a/libpthread/linuxthreads/manager.c +++ b/libpthread/linuxthreads/manager.c @@ -38,6 +38,9 @@ #include #define __clone clone +#if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__ +#define __uselocale(x) uselocale(x) +#endif /* For debugging purposes put the maximum number of threads in a variable. */ const int __linuxthreads_pthread_threads_max = PTHREAD_THREADS_MAX; @@ -291,7 +294,7 @@ pthread_start_thread(void *arg) __sched_setscheduler(THREAD_GETMEM(self, p_pid), SCHED_OTHER, &default_params); } -#if !(USE_TLS && HAVE___THREAD) +#if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__ /* 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); -- cgit v1.2.3