git: fix build with with no threads
[buildroot-gz.git] / package / uclibc / 0003-or1k-add-missing-definition-of-ucontext.patch
blob7c6022818d727ada25efb11fa1ceebe8e1f5d264
1 From 228d03bf0032e5799e9bf04810170c0653ca846d Mon Sep 17 00:00:00 2001
2 From: Waldemar Brodkorb <wbx@openadk.org>
3 Date: Fri, 17 Feb 2017 22:33:49 +0100
4 Subject: [PATCH] or1k: add missing definition of ucontext
6 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
7 ---
8 libc/sysdeps/linux/or1k/sys/ucontext.h | 10 +++++++++-
9 1 file changed, 9 insertions(+), 1 deletion(-)
11 diff --git a/libc/sysdeps/linux/or1k/sys/ucontext.h b/libc/sysdeps/linux/or1k/sys/ucontext.h
12 index b11928e..dd97b60 100644
13 --- a/libc/sysdeps/linux/or1k/sys/ucontext.h
14 +++ b/libc/sysdeps/linux/or1k/sys/ucontext.h
15 @@ -20,6 +20,14 @@
17 #include <features.h>
18 #include <signal.h>
19 -#include <asm/ucontext.h>
20 +#include <bits/sigcontext.h>
22 +typedef struct ucontext {
23 + unsigned long uc_flags;
24 + struct ucontext *uc_link;
25 + stack_t uc_stack;
26 + struct sigcontext uc_mcontext;
27 + sigset_t uc_sigmask; /* mask last for extensibility */
28 +} ucontext_t;
30 #endif /* sys/ucontext.h */
31 --
32 2.1.4