summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-04-21 22:54:16 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-04-21 22:54:16 +0000
commitd21d530170abcaec33ba272b11cb6615eb2804de (patch)
treee92fad39fcc5737d685d6fa97ba51e0f0d5e4b14
parent608a12659f15d57abf42a972c1e56c6a24cfe244 (diff)
Do not redefine tcbhead_t in glibc
* pthread/pt-internal.h (tcbhead_t): Define struct only if IS_IN_libpthread is not defined.
-rw-r--r--pthread/pt-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pthread/pt-internal.h b/pthread/pt-internal.h
index 94bc9a7..6186c86 100644
--- a/pthread/pt-internal.h
+++ b/pthread/pt-internal.h
@@ -54,6 +54,7 @@ enum pthread_state
# define PTHREAD_SYSDEP_MEMBERS
#endif
+#ifndef IS_IN_libpthread
#ifdef ENABLE_TLS
/* Type of the TCB. */
typedef struct
@@ -63,6 +64,7 @@ typedef struct
thread_t self; /* This thread's control port. */
} tcbhead_t;
#endif /* ENABLE_TLS */
+#endif /* IS_IN_libpthread */
/* This structure describes a POSIX thread. */
struct __pthread