mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
8a80e07d3a
Drop patches such as 0001-disable-ucontext-on-musl.patch is used to patch include/my_context.h which is deleted in 10.6.x [1] and rebase one patch to avoid fuzz warnings. [1] https://github.com/MariaDB/server/commit/32a29afea777d8bbfcea7a2b5e6e5ee674013cb5 Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
24 lines
837 B
Diff
24 lines
837 B
Diff
Use SYS_futex for syscall
|
|
|
|
glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there
|
|
is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64
|
|
|
|
Upstream-Status: Pending
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
--- a/storage/innobase/sync/srw_lock.cc
|
|
+++ b/storage/innobase/sync/srw_lock.cc
|
|
@@ -210,6 +210,12 @@ void ssux_lock_low::wake() { WakeByAddre
|
|
# ifdef __linux__
|
|
# include <linux/futex.h>
|
|
# include <sys/syscall.h>
|
|
+/** Newer 32bit CPUs eg. RISCV-32 are defaulting to 64bit time_t from get go and
|
|
+ therefore do not define __NR_futex */
|
|
+# if !defined(SYS_futex) && defined(SYS_futex_time64)
|
|
+# define SYS_futex SYS_futex_time64
|
|
+# endif
|
|
+
|
|
# define SRW_FUTEX(a,op,n) \
|
|
syscall(SYS_futex, a, FUTEX_ ## op ## _PRIVATE, n, nullptr, nullptr, 0)
|
|
# elif defined __OpenBSD__
|