1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

OpenBSD doesn't have mcontext_t

`<signal.h>` provides `typedef struct sigcontext ucontext_t`
This commit is contained in:
Jan Beich 2019-03-19 00:02:21 +00:00 committed by kd-11
parent 1f845a3634
commit 1a13d3ae4e

View File

@ -29,7 +29,9 @@
#endif
#include <errno.h>
#include <signal.h>
#ifndef __OpenBSD__
#include <ucontext.h>
#endif
#include <pthread.h>
#include <sys/time.h>
#include <sys/resource.h>
@ -802,7 +804,7 @@ register_t* freebsd_x64reg(x64_context *context, int reg)
long* openbsd_x64reg(x64_context *context, int reg)
{
auto *state = &context->uc_mcontext;
auto *state = &context;
switch(reg)
{
case 0: return &state->sc_rax;