From a25aab1426f19d967a02861358c8f904ee372d3c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 11 Dec 2024 10:10:02 +0100 Subject: [BOX32] Added a workaround for older system (should help #2138) --- src/emu/x86syscall_32.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/emu/x86syscall_32.c b/src/emu/x86syscall_32.c index bdf8acbe..2a118d65 100644 --- a/src/emu/x86syscall_32.c +++ b/src/emu/x86syscall_32.c @@ -255,6 +255,10 @@ void* my32_mmap64(x64emu_t* emu, void *addr, size_t length, int prot, int flags, int my32_munmap(x64emu_t* emu, void* addr, unsigned long length); int my32_sigaltstack(x64emu_t* emu, const i386_stack_t* ss, i386_stack_t* oss); +#ifndef FUTEX_LOCK_PI2 +#define FUTEX_LOCK_PI2 13 +#endif + void EXPORT x86Syscall(x64emu_t *emu) { uint32_t s = R_EAX; -- cgit 1.4.1