diff options
Diffstat (limited to 'recipes-qt/qt5/qt5-creator/0003-botan-check-for-i386-x86_64.patch')
-rw-r--r-- | recipes-qt/qt5/qt5-creator/0003-botan-check-for-i386-x86_64.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-qt/qt5/qt5-creator/0003-botan-check-for-i386-x86_64.patch b/recipes-qt/qt5/qt5-creator/0003-botan-check-for-i386-x86_64.patch new file mode 100644 index 00000000..32671815 --- /dev/null +++ b/recipes-qt/qt5/qt5-creator/0003-botan-check-for-i386-x86_64.patch @@ -0,0 +1,28 @@ +From 925868614c475d9e90bff8d9a33525f5d65d907c Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Tue, 25 Sep 2018 23:17:42 +0000 +Subject: [PATCH] botan: check for i386 || x86_64 + +Just check for x86 or x86_64 to define X86 based support +This makes sure it compiles for non-x86 platforms + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@gmail.com> +Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> +--- + src/libs/3rdparty/botan/botan.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libs/3rdparty/botan/botan.h b/src/libs/3rdparty/botan/botan.h +index 26ca8aca37..969405c56e 100644 +--- a/src/libs/3rdparty/botan/botan.h ++++ b/src/libs/3rdparty/botan/botan.h +@@ -85,7 +85,7 @@ + #endif + + #define BOTAN_TARGET_CPU_IS_LITTLE_ENDIAN +-#if !defined(__arm__) && !defined(__aarch64__) ++#if defined(__i386__) || defined(__x86_64__) + #define BOTAN_TARGET_CPU_IS_X86_FAMILY + #endif + #define BOTAN_TARGET_UNALIGNED_MEMORY_ACCESS_OK 1 |