From 3e0926cba8db4a5ccf02553354a5d870767afba1 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 13 Apr 2024 10:06:40 -0300 Subject: [PATCH] mlibc patch: dont error on stubbed futex calls --- patches/mlibc/jinx-working-patch.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/mlibc/jinx-working-patch.patch b/patches/mlibc/jinx-working-patch.patch index 8cd10bd0..08edf620 100644 --- a/patches/mlibc/jinx-working-patch.patch +++ b/patches/mlibc/jinx-working-patch.patch @@ -188,7 +188,7 @@ index 0000000..e5b087a + diff --git mlibc-workdir/sysdeps/astral/generic/generic.cpp mlibc-workdir/sysdeps/astral/generic/generic.cpp new file mode 100644 -index 0000000..8a814ec +index 0000000..8d990b7 --- /dev/null +++ mlibc-workdir/sysdeps/astral/generic/generic.cpp @@ -0,0 +1,553 @@ @@ -656,12 +656,12 @@ index 0000000..8a814ec + int sys_futex_wait(int *pointer, int expected, const struct timespec *time) { + mlibc::infoLogger() << "mlibc: futex wait is a stub" << frg::endlog; + // TODO UNSTUB -+ return ENOSYS; ++ return 0; + } + int sys_futex_wake(int *pointer) { + mlibc::infoLogger() << "mlibc: futex wake is a stub" << frg::endlog; + // TODO UNSTUB -+ return ENOSYS; ++ return 0; + } + +