chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / debian / patches / any / local-linuxthreads-gscope.diff
1 ---
2  linuxthreads/descr.h |   12 ++++++++++++
3  1 file changed, 12 insertions(+)
4
5 --- a/linuxthreads/descr.h
6 +++ b/linuxthreads/descr.h
7 @@ -23,6 +23,7 @@
8  #include <stdint.h>
9  #include <sys/types.h>
10  #include <hp-timing.h>
11 +#include <lowlevellock.h>
12  #include <tls.h>
13  
14  /* Fast thread-specific data internal to libc.  */
15 @@ -123,12 +124,23 @@
16        uintptr_t sysinfo;
17        uintptr_t stack_guard;
18        uintptr_t pointer_guard;
19 +# ifdef __FreeBSD_kernel__
20 +      long gscope_flag;
21 +# else
22 +      int gscope_flag;
23 +# endif
24      } data;
25      void *__padding[16];
26    } p_header;
27  # define p_multiple_threads p_header.data.multiple_threads
28 +# define p_gscope_flag p_header.data.gscope_flag
29  #elif TLS_MULTIPLE_THREADS_IN_TCB
30    int p_multiple_threads;
31 +# ifdef __FreeBSD_kernel__
32 +  long p_gscope_flag;
33 +# else
34 +  int p_gscope_flag;
35 +# endif
36  #endif
37  
38    pthread_descr p_nextlive, p_prevlive;