1 From 6b4520e13c2ed7fca725d5f5c879854cd7c96c19 Mon Sep 17 00:00:00 2001
2 From: Mark Corbin <mark.corbin@embecosm.com>
3 Date: Mon, 4 Feb 2019 10:35:27 +0000
4 Subject: [PATCH] Fix mcontext_t error that breaks RISC-V architecture
7 The riscv-glibc repository version of glibc 2.26 will build for
8 RISC-V 32bit, but when many packages are built against the resulting
9 library an 'unknown type name mcontext_t' error is reported. The
10 definition of mcontext_h in the ucontext.h header file needs to be
11 moved outside of the '#ifdef __USE_MISC' structure to fix this
14 Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
16 sysdeps/unix/sysv/linux/riscv/sys/ucontext.h | 3 +--
17 1 file changed, 1 insertion(+), 2 deletions(-)
19 diff --git a/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h b/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h
20 index 8f02f09106..b9dd04564a 100644
21 --- a/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h
22 +++ b/sysdeps/unix/sysv/linux/riscv/sys/ucontext.h
23 @@ -48,12 +48,11 @@ typedef greg_t gregset_t[NGREG];
25 /* Container for floating-point state. */
26 typedef union __riscv_fp_state fpregset_t;
29 /* Context to describe whole processor state. */
30 typedef struct sigcontext mcontext_t;
34 /* Userlevel context. */
35 typedef struct ucontext