kumquat-buildroot/package/uclibc/0003-or1k-add-missing-definition-of-ucontext.patch
Waldemar Brodkorb a24a7b3c2f uclibc: define struct ucontext for or1k
Add missing define for struct ucontext for OpenRISC.

Fixes:
  http://autobuild.buildroot.net/results/d8715a2b3783d877edf91bb14a80d36eac749b36

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-02-20 13:21:31 +01:00

34 lines
963 B
Diff

From 228d03bf0032e5799e9bf04810170c0653ca846d Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Fri, 17 Feb 2017 22:33:49 +0100
Subject: [PATCH] or1k: add missing definition of ucontext
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
libc/sysdeps/linux/or1k/sys/ucontext.h | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/libc/sysdeps/linux/or1k/sys/ucontext.h b/libc/sysdeps/linux/or1k/sys/ucontext.h
index b11928e..dd97b60 100644
--- a/libc/sysdeps/linux/or1k/sys/ucontext.h
+++ b/libc/sysdeps/linux/or1k/sys/ucontext.h
@@ -20,6 +20,14 @@
#include <features.h>
#include <signal.h>
-#include <asm/ucontext.h>
+#include <bits/sigcontext.h>
+
+typedef struct ucontext {
+ unsigned long uc_flags;
+ struct ucontext *uc_link;
+ stack_t uc_stack;
+ struct sigcontext uc_mcontext;
+ sigset_t uc_sigmask; /* mask last for extensibility */
+} ucontext_t;
#endif /* sys/ucontext.h */
--
2.1.4