Files
poky/meta/recipes-sato/webkit/webkitgtk/sys_futex.patch
Khem Raj 50db08cdd6 webkitgtk: Fix build on 32bit arches with 64bit time_t only
This is a fix needed in angle module which is vendored in webkit repo.
glibc does not define SYS_futex on 32bit arches with 64bit time_t only
e.g. riscv32

(From OE-Core rev: fab8dbdc48b6ae59bb1ea4cb47204f99f195b12c)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-12-20 15:47:14 +00:00

17 lines
680 B
Diff

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)