summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch
blob: 19d18dea8816dffa724595028f00a3cb12093e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)