diff options
| author | ptitSeb <seebastien.chev@gmail.com> | 2023-09-02 12:21:39 +0200 |
|---|---|---|
| committer | ptitSeb <seebastien.chev@gmail.com> | 2023-09-02 12:21:39 +0200 |
| commit | 90ad1653590dab359d1b8acb41faccd3c8039a0c (patch) | |
| tree | 19cf2b051b10dee15d78dec79e7d979c294bc51a /src/emu | |
| parent | 30eae8f513a01c400a7b1f7baf9978fd2a5fc27d (diff) | |
| download | box64-90ad1653590dab359d1b8acb41faccd3c8039a0c.tar.gz box64-90ad1653590dab359d1b8acb41faccd3c8039a0c.zip | |
[ANDROID] This should fix Dynarec build on Android
Diffstat (limited to 'src/emu')
| -rw-r--r-- | src/emu/x64emu_private.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/emu/x64emu_private.h b/src/emu/x64emu_private.h index 8076049d..701d5add 100644 --- a/src/emu/x64emu_private.h +++ b/src/emu/x64emu_private.h @@ -44,6 +44,12 @@ typedef struct emu_flags_s { uint32_t jmpbuf_ready:1; // the jmpbuf in the emu is ok and don't need refresh } emu_flags_t; +#ifdef ANDROID +#define JUMPBUFF sigjmp_buf +#else +#define JUMPBUFF struct __jmp_buf_tag +#endif + typedef struct x64emu_s { // cpu reg64_t regs[16]; @@ -104,7 +110,7 @@ typedef struct x64emu_s { void* stack2free; // this is the stack to free (can be NULL) void* init_stack; // initial stack (owned or not) uint32_t size_stack; // stack size (owned or not) - struct __jmp_buf_tag *jmpbuf; + JUMPBUFF* jmpbuf; x64_ucontext_t *uc_link; // to handle setcontext |