Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] uclibc: define struct ucontext for or1k
Date: Fri, 17 Feb 2017 22:48:49 +0100	[thread overview]
Message-ID: <20170217214849.GA29072@waldemar-brodkorb.de> (raw)

Add missing define for struct ucontext for OpenRISC.

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

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 ...3-or1k-add-missing-definition-of-ucontext.patch | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/uclibc/0003-or1k-add-missing-definition-of-ucontext.patch

diff --git a/package/uclibc/0003-or1k-add-missing-definition-of-ucontext.patch b/package/uclibc/0003-or1k-add-missing-definition-of-ucontext.patch
new file mode 100644
index 0000000..7c60228
--- /dev/null
+++ b/package/uclibc/0003-or1k-add-missing-definition-of-ucontext.patch
@@ -0,0 +1,33 @@
+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
+
-- 
2.1.4

             reply	other threads:[~2017-02-17 21:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-17 21:48 Waldemar Brodkorb [this message]
2017-02-20 20:36 ` [Buildroot] [PATCH] uclibc: define struct ucontext for or1k Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170217214849.GA29072@waldemar-brodkorb.de \
    --to=wbx@openadk.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox