1a837bbd19e4dab3afed4bf731ea41fa70a6d561
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0055-siginfo_h-add-a-missing-function-member.patch
1 siginfo.h: add a missing function member on ia64, mips and sparc arches
2 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
3
4 From b4e6e61e2f7c6fb4bf59f66efaa74591a2112912 Mon Sep 17 00:00:00 2001
5 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
6 Date: Thu, 02 Jan 2014 15:02:11 +0000
7 Subject: siginfo.h: add a missing function member on ia64, mips and sparc arches
8
9 Add "__pid_t _tid" member which is used for some packages, like rt-test
10 for instance, which fails with an error like this one:
11
12 src/cyclictest/cyclictest.c:638:9: error: 'union <anonymous>' has no
13 member named '_tid'
14
15 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
16 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
17 ---
18 (limited to 'libc/sysdeps/linux')
19
20 diff --git a/libc/sysdeps/linux/ia64/bits/siginfo.h b/libc/sysdeps/linux/ia64/bits/siginfo.h
21 index f571f46..82cc73f 100644
22 --- a/libc/sysdeps/linux/ia64/bits/siginfo.h
23 +++ b/libc/sysdeps/linux/ia64/bits/siginfo.h
24 @@ -309,6 +309,10 @@ typedef struct sigevent
25        {
26         int _pad[__SIGEV_PAD_SIZE];
27  
28 +       /* When SIGEV_SIGNAL and SIGEV_THREAD_ID set, LWP ID of the
29 +          thread to receive the signal.  */
30 +       __pid_t _tid;
31 +
32         struct
33           {
34             void (*_function) (sigval_t);       /* Function to start.  */
35 diff --git a/libc/sysdeps/linux/mips/bits/siginfo.h b/libc/sysdeps/linux/mips/bits/siginfo.h
36 index 79fb15a..84b08ca 100644
37 --- a/libc/sysdeps/linux/mips/bits/siginfo.h
38 +++ b/libc/sysdeps/linux/mips/bits/siginfo.h
39 @@ -281,6 +281,10 @@ typedef struct sigevent
40        {
41         int _pad[__SIGEV_PAD_SIZE];
42  
43 +       /* When SIGEV_SIGNAL and SIGEV_THREAD_ID set, LWP ID of the
44 +          thread to receive the signal.  */
45 +       __pid_t _tid;
46 +
47         struct
48           {
49             void (*_function) (sigval_t);       /* Function to start.  */
50 diff --git a/libc/sysdeps/linux/sparc/bits/siginfo.h b/libc/sysdeps/linux/sparc/bits/siginfo.h
51 index 6f2d035..3ffeb6d 100644
52 --- a/libc/sysdeps/linux/sparc/bits/siginfo.h
53 +++ b/libc/sysdeps/linux/sparc/bits/siginfo.h
54 @@ -288,6 +288,10 @@ typedef struct sigevent
55        {
56         int _pad[__SIGEV_PAD_SIZE];
57  
58 +       /* When SIGEV_SIGNAL and SIGEV_THREAD_ID set, LWP ID of the
59 +          thread to receive the signal.  */
60 +       __pid_t _tid;
61 +
62         struct
63           {
64             void (*_function) (sigval_t);       /* Function to start.  */
65 --
66 cgit v0.9.1