about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-11 10:10:02 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-11 10:10:02 +0100
commita25aab1426f19d967a02861358c8f904ee372d3c (patch)
treecdf803e7b300e1cac58e704cc04a19f6d7bb5b3e /src
parent54f593fa7503a7f33e361fa947e206375a8d72c1 (diff)
downloadbox64-a25aab1426f19d967a02861358c8f904ee372d3c.tar.gz
box64-a25aab1426f19d967a02861358c8f904ee372d3c.zip
[BOX32] Added a workaround for older system (should help #2138)
Diffstat (limited to 'src')
-rw-r--r--src/emu/x86syscall_32.c4
1 files changed, 4 insertions, 0 deletions
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;