diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-04-21 22:54:16 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-04-21 22:54:16 +0000 |
commit | d21d530170abcaec33ba272b11cb6615eb2804de (patch) | |
tree | e92fad39fcc5737d685d6fa97ba51e0f0d5e4b14 | |
parent | 608a12659f15d57abf42a972c1e56c6a24cfe244 (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.h | 2 |
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 |