From 279638a5e2f5b73f43a7a8ce0d92caf0681e2968 Mon Sep 17 00:00:00 2001 From: stes Date: Wed, 29 Apr 2020 13:51:19 +0200 Subject: [PATCH] sun change: include for --- platforms/unix/vm/include_ucontext.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platforms/unix/vm/include_ucontext.h b/platforms/unix/vm/include_ucontext.h index 7dc8d92d0d..09e52ac4d6 100644 --- a/platforms/unix/vm/include_ucontext.h +++ b/platforms/unix/vm/include_ucontext.h @@ -19,6 +19,9 @@ #endif #ifdef __OpenBSD__ # include +#elif __sun +/* Single UNIX Specification (SUS), Version 2 specifies */ +# include #else # include #endif @@ -36,6 +39,10 @@ # define _PC_IN_UCONTEXT uc_mcontext->__ss.__rip #elif __APPLE__ && __MACH__ && __x86_64__ # define _PC_IN_UCONTEXT uc_mcontext->ss.rip +#elif __sun && __amd64 +# define _PC_IN_UCONTEXT uc_mcontext.gregs[REG_RIP] +#elif __sun && __i386__ +# define _PC_IN_UCONTEXT uc_mcontext.gregs[EIP] #elif __linux__ && __i386__ # define _PC_IN_UCONTEXT uc_mcontext.gregs[REG_EIP] #elif __linux__ && __x86_64__