summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/libc_pthread_init.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-31 22:32:17 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-31 22:32:17 +0000
commit167d569420c674556ca4e94937fbd4c104081085 (patch)
tree68ec92f752e66eabebdd3a51d1989eda4e453b39 /libpthread/linuxthreads/libc_pthread_init.c
parent44d025b3b9f97f660bb2378a7a3801ed28d65e29 (diff)
pt-allocrtsig.c is irrelevant for now, remove related too, add libc_hidden_proto from old version
Diffstat (limited to 'libpthread/linuxthreads/libc_pthread_init.c')
-rw-r--r--libpthread/linuxthreads/libc_pthread_init.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/libc_pthread_init.c b/libpthread/linuxthreads/libc_pthread_init.c
index b42751a2c..5a43eac04 100644
--- a/libpthread/linuxthreads/libc_pthread_init.c
+++ b/libpthread/linuxthreads/libc_pthread_init.c
@@ -25,6 +25,13 @@
#endif
#include "internals.h"
+#ifdef SHARED
+libc_hidden_proto(memcpy)
+#endif
+#if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__
+libc_hidden_proto(uselocale)
+#endif
+
int *
__libc_pthread_init (functions)
const struct pthread_functions *functions;
@@ -37,10 +44,10 @@ __libc_pthread_init (functions)
sizeof (__libc_pthread_functions));
#endif
-#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);
+ uselocale (LC_GLOBAL_LOCALE);
#endif
return &__libc_multiple_threads;