summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch')
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch b/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch
index 3244ab8da2..3840472213 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch
+++ b/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch
@@ -1,14 +1,22 @@
1Use SYS_futex for syscall 1From 166811dfcfc61e7646275aa993d7d7f4b02d1f49 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 3 Apr 2021 12:40:14 -0700
4Subject: [PATCH] Use SYS_futex for syscall
2 5
3glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there 6glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there
4is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64 7is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64
5 8
6Upstream-Status: Pending 9Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 storage/innobase/sync/srw_lock.cc | 6 ++++++
13 1 file changed, 6 insertions(+)
8 14
15diff --git a/storage/innobase/sync/srw_lock.cc b/storage/innobase/sync/srw_lock.cc
16index 28b586de..3ee71142 100644
9--- a/storage/innobase/sync/srw_lock.cc 17--- a/storage/innobase/sync/srw_lock.cc
10+++ b/storage/innobase/sync/srw_lock.cc 18+++ b/storage/innobase/sync/srw_lock.cc
11@@ -210,6 +210,12 @@ void ssux_lock_low::wake() { WakeByAddre 19@@ -226,6 +226,12 @@ void ssux_lock_impl<spinloop>::wake() noexcept { WakeByAddressSingle(&readers);
12 # ifdef __linux__ 20 # ifdef __linux__
13 # include <linux/futex.h> 21 # include <linux/futex.h>
14 # include <sys/syscall.h> 22 # include <sys/syscall.h>