Skip to content

Commit

Permalink
sun change: include <ucontext.h> for <sys/regset.h>
Browse files Browse the repository at this point in the history
  • Loading branch information
cstes committed Apr 29, 2020
1 parent 023fefc commit 279638a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platforms/unix/vm/include_ucontext.h
Expand Up @@ -19,6 +19,9 @@
#endif
#ifdef __OpenBSD__
# include <sys/signal.h>
#elif __sun
/* Single UNIX Specification (SUS), Version 2 specifies <ucontext.h> */
# include <ucontext.h>
#else
# include <sys/ucontext.h>
#endif
Expand All @@ -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__
Expand Down

0 comments on commit 279638a

Please sign in to comment.