diff options
Diffstat (limited to 'libpthread/linuxthreads/libc_pthread_init.c')
-rw-r--r-- | libpthread/linuxthreads/libc_pthread_init.c | 11 |
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; |