Browse Source

or1k: add missing definition of ucontext

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Waldemar Brodkorb 7 years ago
parent
commit
9f57d77a9a
1 changed files with 9 additions and 1 deletions
  1. 9 1
      libc/sysdeps/linux/or1k/sys/ucontext.h

+ 9 - 1
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 */