aboutsummaryrefslogtreecommitdiff
path: root/htl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-04 18:52:00 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-04 18:52:03 +0100
commit12e166dd80bd3056f667930719572017d25a79c4 (patch)
tree6cef1a0b8c1614ecba504259ce13ae41470a492c /htl
parentaf7be496c9f1a1ca340ccd95152d46e8464490a1 (diff)
downloadglibc-12e166dd80bd3056f667930719572017d25a79c4.zip
glibc-12e166dd80bd3056f667930719572017d25a79c4.tar.gz
glibc-12e166dd80bd3056f667930719572017d25a79c4.tar.bz2
htl: Drop common tcbhead_t definition
This would conflict when including pt-internal.h outside libpthread, while we can actually just include <tls.h>
Diffstat (limited to 'htl')
-rw-r--r--htl/pt-internal.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index ebe7f43..8754f38 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -37,6 +37,8 @@
# include <ldsodefs.h>
#endif
+#include <tls.h>
+
/* Thread state. */
enum pthread_state
{
@@ -58,16 +60,6 @@ enum pthread_state
# define PTHREAD_SYSDEP_MEMBERS
#endif
-#if !(IS_IN (libpthread))
-/* Type of the TCB. */
-typedef struct
-{
- void *tcb; /* Points to this structure. */
- void *dtv; /* Vector of pointers to TLS data. */
- thread_t self; /* This thread's control port. */
-} tcbhead_t;
-#endif /* ! IS_IN (libpthread) */
-
/* This structure describes a POSIX thread. */
struct __pthread
{