summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/webkit/webkitgtk/x32_support.patch
blob: f2454b9849910a971a2d6ac8b511e57a2183e6bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 897563a0397266d8ceb058f172e16b06419b2593 Mon Sep 17 00:00:00 2001
From: Daniel Schepler <dschepler@gmail.com>
Date: Mon, 26 Mar 2018 17:48:34 +0300
Subject: [PATCH] Fix FTBFS in x32

===================================================================

---
 Source/WTF/wtf/Platform.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h
index 850e298..551c047 100644
--- a/Source/WTF/wtf/Platform.h
+++ b/Source/WTF/wtf/Platform.h
@@ -132,7 +132,11 @@
 /* CPU(X86_64) - AMD64 / Intel64 / x86_64 64-bit */
 #if   defined(__x86_64__) \
     || defined(_M_X64)
+#ifdef __ILP32__
+#define WTF_CPU_X86_64_32 1
+#else
 #define WTF_CPU_X86_64 1
+#endif
 #define WTF_CPU_X86_SSE2 1
 #define WTF_CPU_KNOWN 1
 #endif