summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/libc_pthread_init.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-04 23:24:02 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-04 23:24:02 +0000
commitb4e5c5b6c33d6538291d98672b1e5eb886706217 (patch)
tree4ec8ea94e596718266cc8b30bf773ad08375f914 /libpthread/linuxthreads.old/libc_pthread_init.c
parent5fa64b838878bc41ca608a2560da6874a515d372 (diff)
Build also if XLOCALE is enabled
Diffstat (limited to 'libpthread/linuxthreads.old/libc_pthread_init.c')
-rw-r--r--libpthread/linuxthreads.old/libc_pthread_init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/libc_pthread_init.c b/libpthread/linuxthreads.old/libc_pthread_init.c
index 4afb65a6f..6cc674b75 100644
--- a/libpthread/linuxthreads.old/libc_pthread_init.c
+++ b/libpthread/linuxthreads.old/libc_pthread_init.c
@@ -17,6 +17,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
+#define _GNU_SOURCE
#include <features.h>
#include <locale.h>
#include <stdlib.h>
@@ -24,6 +25,10 @@
#include "internals.h"
#include "sysdeps/pthread/pthread-functions.h"
+#if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__
+extern __locale_t __uselocale (__locale_t __dataset) __THROW;
+#endif
+
int __libc_multiple_threads attribute_hidden __attribute__((nocommon));
int *