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:
parent
1f845a3634
commit
1a13d3ae4e
@ -29,7 +29,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#ifndef __OpenBSD__
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
|
#endif
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/resource.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)
|
long* openbsd_x64reg(x64_context *context, int reg)
|
||||||
{
|
{
|
||||||
auto *state = &context->uc_mcontext;
|
auto *state = &context;
|
||||||
switch(reg)
|
switch(reg)
|
||||||
{
|
{
|
||||||
case 0: return &state->sc_rax;
|
case 0: return &state->sc_rax;
|
||||||
|
Loading…
Reference in New Issue
Block a user