svn commit: trunk/uClibc/libpthread/linuxthreads

psm at uclibc.org psm at uclibc.org
Wed Feb 1 01:29:21 UTC 2006


Author: psm
Date: 2006-01-31 17:29:20 -0800 (Tue, 31 Jan 2006)
New Revision: 13772

Log:
correct __uselocale

Modified:
   trunk/uClibc/libpthread/linuxthreads/manager.c


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads/manager.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads/manager.c	2006-02-01 00:14:52 UTC (rev 13771)
+++ trunk/uClibc/libpthread/linuxthreads/manager.c	2006-02-01 01:29:20 UTC (rev 13772)
@@ -294,10 +294,12 @@
       __sched_setscheduler(THREAD_GETMEM(self, p_pid),
                            SCHED_OTHER, &default_params);
     }
-#if !(USE_TLS && HAVE___THREAD) && defined __UCLIBC_HAS_XLOCALE__
+#if !(USE_TLS && HAVE___THREAD)
   /* Initialize thread-locale current locale to point to the global one.
      With __thread support, the variable's initializer takes care of this.  */
+#ifdef __UCLIBC_HAS_XLOCALE__
   __uselocale (LC_GLOBAL_LOCALE);
+#endif
 #else
   /* Initialize __resp.  */
   __resp = &self->p_res;



More information about the uClibc-cvs mailing list