webkitgtk3: Fix build on RISCV32

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-03-21 09:53:28 -07:00
parent 59d15aa112
commit 3f08abfc9c
No known key found for this signature in database
GPG Key ID: BB053355919D3314
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
Fix build on newer 32bit architectures with only 64bit time_t
Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/angle/angle/+/6108397]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp
+++ b/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp
@@ -17,6 +17,9 @@
# include <linux/futex.h>
# include <sys/syscall.h>
# include <unistd.h>
+# if !defined(SYS_futex) && defined(SYS_futex_time64)
+# define SYS_futex SYS_futex_time64
+# endif
# endif // defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_ANDROID)
# if defined(ANGLE_PLATFORM_WINDOWS)

View File

@ -17,6 +17,7 @@ SRC_URI = "https://www.webkitgtk.org/releases/webkitgtk-${PV}.tar.xz \
file://0001-FindGObjectIntrospection.cmake-prefix-variables-obta.patch \
file://reproducibility.patch \
file://no-musttail-arm.patch \
file://sys_futex.patch \
file://0001-Cherry-pick-292304-main-7ffc29624258-.-https-bugs.we.patch \
file://0001-EnumTraits.h-error-no-matching-function-for-call-to-.patch \
file://0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch \