linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / gcc / libstdc++ / struct-ucontext.patch
blob5462e0e33ecd75d1e346b4b2f6d40ba4d72f56e2
1 diff --git a/gcc/config/alpha/linux.h b/gcc/config/alpha/linux.h
2 index 3a2940c..67f9899 100644
3 --- a/gcc/config/alpha/linux.h
4 +++ b/gcc/config/alpha/linux.h
5 @@ -89,7 +89,7 @@ Boston, MA 02111-1307, USA. */
6 { \
7 struct rt_sigframe { \
8 struct siginfo info; \
9 - struct ucontext uc; \
10 + ucontext_t uc; \
11 } *rt_ = (CONTEXT)->cfa; \
12 sc_ = &rt_->uc.uc_mcontext; \
13 } \
14 diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h
15 index e86ab3d..30797a7 100644
16 --- a/gcc/config/i386/linux.h
17 +++ b/gcc/config/i386/linux.h
18 @@ -260,7 +260,7 @@ Boston, MA 02111-1307, USA. */
19 siginfo_t *pinfo; \
20 void *puc; \
21 siginfo_t info; \
22 - struct ucontext uc; \
23 + ucontext_t uc; \
24 } *rt_ = (CONTEXT)->cfa; \
25 sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext; \
26 } \
27 diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h
28 index fbfaa58..200c8dc 100644
29 --- a/gcc/config/i386/linux64.h
30 +++ b/gcc/config/i386/linux64.h
31 @@ -112,7 +112,7 @@ Boston, MA 02111-1307, USA. */
32 if (*(unsigned char *)(pc_+0) == 0x48 \
33 && *(unsigned long *)(pc_+1) == 0x050f0000000fc0c7) \
34 { \
35 - struct ucontext *uc_ = (CONTEXT)->cfa; \
36 + ucontext_t *uc_ = (CONTEXT)->cfa; \
37 sc_ = (struct sigcontext *) &uc_->uc_mcontext; \
38 } \
39 else \
40 @@ -182,7 +182,7 @@ Boston, MA 02111-1307, USA. */
41 struct siginfo *pinfo; \
42 void *puc; \
43 struct siginfo info; \
44 - struct ucontext uc; \
45 + ucontext_t uc; \
46 } *rt_ = (CONTEXT)->cfa; \
47 sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext; \
48 } \
49 diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h
50 index ba70ec1..0fff8b1 100644
51 --- a/gcc/config/rs6000/linux.h
52 +++ b/gcc/config/rs6000/linux.h
53 @@ -101,7 +101,7 @@ Boston, MA 02111-1307, USA. */
55 struct kernel_old_ucontext {
56 unsigned long uc_flags;
57 - struct ucontext *uc_link;
58 + ucontext_t *uc_link;
59 stack_t uc_stack;
60 struct sigcontext_struct uc_mcontext;
61 sigset_t uc_sigmask;