From 7b95807fa086174cbab146cbd7c60a6d2e386917 Mon Sep 17 00:00:00 2001 From: Ross McIlroy Date: Fri, 31 Jan 2014 04:45:53 +0000 Subject: [PATCH] Add missing ucontext_t definition to bionic for arch-arm64. Change-Id: I1ee15230c63e00f01d2063cfffcffe7f1a1eeb6a --- libc/include/sys/ucontext.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libc/include/sys/ucontext.h b/libc/include/sys/ucontext.h index c65e2b615..94b7a6806 100644 --- a/libc/include/sys/ucontext.h +++ b/libc/include/sys/ucontext.h @@ -74,9 +74,20 @@ typedef struct ucontext { /* TODO: uc_regspace */ } ucontext_t; -#elif defined(__arm64__) +#elif defined(__aarch64__) -#error TODO +/* TODO: gregset_t and fpregset_t. */ + +#include +typedef struct sigcontext mcontext_t; + +typedef struct ucontext { + unsigned long uc_flags; + struct ucontext *uc_link; + stack_t uc_stack; + sigset_t uc_sigmask; + mcontext_t uc_mcontext; +} ucontext_t; #elif defined(__i386__) -- 2.11.0