Files
Khem Raj 3f08abfc9c webkitgtk3: Fix build on RISCV32
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-21 11:07:35 -07: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)