]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: Drop common tcbhead_t definition
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 4 Jan 2020 17:52:00 +0000 (18:52 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 4 Jan 2020 17:52:03 +0000 (18:52 +0100)
This would conflict when including pt-internal.h outside libpthread, while
we can actually just include <tls.h>

htl/pt-internal.h

index ebe7f43d887a0cf6f7fa7e9a1441c0c88d44e10c..8754f386a62609b1c471c88189296abc62b4ea3c 100644 (file)
@@ -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
 {