mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
OpenBSD doesn't have mcontext_t
`<signal.h>` provides `typedef struct sigcontext ucontext_t`
This commit is contained in:
parent
1f845a3634
commit
1a13d3ae4e
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue