From 1d2dbb9eb220f313ebc712f1c69c611f6867da54 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 8 May 2011 00:23:14 +0200 Subject: linuxthreads: guard *tsd* related stuff correctly Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-tsd.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libpthread/linuxthreads.old') diff --git a/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-tsd.h b/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-tsd.h index 31d859ec3..bee7eb1be 100644 --- a/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-tsd.h +++ b/libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-tsd.h @@ -30,12 +30,11 @@ enum __libc_tsd_key_t { _LIBC_TSD_KEY_MALLOC = 0, _LIBC_TSD_KEY_CTYPE_TOUPPER, _LIBC_TSD_KEY_N }; -#include -#include - +#include #include -#if defined(USE_TLS) && USE_TLS && HAVE___THREAD +#ifdef __UCLIBC_HAS_TLS__ +#include /* When __thread works, the generic definition is what we want. */ # include -- cgit v1.2.3