summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qt5-creator/botan-non-x86.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qt5-creator/botan-non-x86.patch')
-rw-r--r--recipes-qt/qt5/qt5-creator/botan-non-x86.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qt5-creator/botan-non-x86.patch b/recipes-qt/qt5/qt5-creator/botan-non-x86.patch
new file mode 100644
index 00000000..5c83340c
--- /dev/null
+++ b/recipes-qt/qt5/qt5-creator/botan-non-x86.patch
@@ -0,0 +1,19 @@
1Just check for x86 or x86_64 to define X86 based support
2This makes sure it compiles for non-x86 platforms
3
4Upstream-Status: Pending
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6
7Index: qt-creator-opensource-src-4.5.1/src/libs/3rdparty/botan/botan.h
8===================================================================
9--- qt-creator-opensource-src-4.5.1.orig/src/libs/3rdparty/botan/botan.h
10+++ qt-creator-opensource-src-4.5.1/src/libs/3rdparty/botan/botan.h
11@@ -85,7 +85,7 @@
12 #endif
13
14 #define BOTAN_TARGET_CPU_IS_LITTLE_ENDIAN
15-#if !defined(__arm__) && !defined(__aarch64__)
16+#if defined(__i386__) || defined(__x86_64__)
17 #define BOTAN_TARGET_CPU_IS_X86_FAMILY
18 #endif
19 #define BOTAN_TARGET_UNALIGNED_MEMORY_ACCESS_OK 1