diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-06-11 03:57:44 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-06-11 03:57:44 +0200 |
commit | ff1ae3d79b2d103f211ad4c600e144ad448a98e6 (patch) | |
tree | 2951a2409e22815f3f859f573f8ee48ee8b15aab /pthread/pt-create.c | |
parent | e7f324f243f776b2729403c55c508d7ceb7b6a01 (diff) |
Initialize ctype
* pthread/pt-create.c (entry_point) [IS_IN_libpthread]: Call __ctype_init.
Diffstat (limited to 'pthread/pt-create.c')
-rw-r--r-- | pthread/pt-create.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c index 25a3607..9ce0be8 100644 --- a/pthread/pt-create.c +++ b/pthread/pt-create.c @@ -26,6 +26,9 @@ #include <pt-internal.h> +#ifdef IS_IN_libpthread +# include <ctype.h> +#endif #ifdef HAVE_USELOCALE # include <locale.h> #endif @@ -44,6 +47,10 @@ entry_point (struct __pthread *self, void *(*start_routine)(void *), void *arg) ___pthread_self = self; #endif +#ifdef IS_IN_libpthread + /* Initialize pointers to locale data. */ + __ctype_init (); +#endif #ifdef HAVE_USELOCALE /* A fresh thread needs to be bound to the global locale. */ uselocale (LC_GLOBAL_LOCALE); |