From 71a7acbd4e8bf6f42e02c04932b3e13a5452b399 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 27 Apr 2011 17:07:16 +0200 Subject: linuxthreads.old: cleanup a bit Use __UCLIBC_HAS_TLS__ instead of USE___THREADS (although this LT implementation will never support TLS). Disable unused/unneeded members of the pthread_functions structure. No redirect/forward for _pthread_cleanup_push/pop, it would have not worked anyway due to the fact, that the structure member was not initialized. Disable it's possible internal use in libc-lock.h. Avoid using internals.h in libc_pthread_init.c (moving a prototype to pthread-functions.h). Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libpthread/linuxthreads.old/libc_pthread_init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libpthread/linuxthreads.old/libc_pthread_init.c') diff --git a/libpthread/linuxthreads.old/libc_pthread_init.c b/libpthread/linuxthreads.old/libc_pthread_init.c index b54162d6c..a459cf3b5 100644 --- a/libpthread/linuxthreads.old/libc_pthread_init.c +++ b/libpthread/linuxthreads.old/libc_pthread_init.c @@ -32,8 +32,7 @@ # include #endif -#include "internals.h" -#include "sysdeps/pthread/pthread-functions.h" +#include int __libc_multiple_threads attribute_hidden __attribute__((nocommon)); @@ -48,7 +47,7 @@ int * __libc_pthread_init (const struct pthread_functions *functions) sizeof (__libc_pthread_functions)); #endif -#if ! defined USE___THREAD && defined __UCLIBC_HAS_XLOCALE__ +#if !defined __UCLIBC_HAS_TLS__ && 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); -- cgit v1.2.3