summaryrefslogtreecommitdiff
path: root/user/telegram/ppc.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-22 19:04:45 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-22 19:04:45 +0000
commit5eedb4d420d89a89a5a926b2276274d13c1a12c6 (patch)
treec26d80528a9e4a518b91d9d722027f5326d5e04a /user/telegram/ppc.patch
parentca0ba7a6ae14c92c93600d292a94c76474cb6040 (diff)
downloadpackages-5eedb4d420d89a89a5a926b2276274d13c1a12c6.tar.gz
packages-5eedb4d420d89a89a5a926b2276274d13c1a12c6.tar.bz2
packages-5eedb4d420d89a89a5a926b2276274d13c1a12c6.tar.xz
packages-5eedb4d420d89a89a5a926b2276274d13c1a12c6.zip
user/telegram: New package
Diffstat (limited to 'user/telegram/ppc.patch')
-rw-r--r--user/telegram/ppc.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/user/telegram/ppc.patch b/user/telegram/ppc.patch
new file mode 100644
index 000000000..0a09150eb
--- /dev/null
+++ b/user/telegram/ppc.patch
@@ -0,0 +1,28 @@
+From af5f8d19f0fdded987beee4568f02cc8dcbd20f4 Mon Sep 17 00:00:00 2001
+From: John Zimmermann <johnz@posteo.net>
+Date: Thu, 2 Jan 2020 12:58:45 +0100
+Subject: [PATCH] PowerPC support
+
+---
+ base/build_config.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git Telegram/lib_base/base/build_config.h Telegram/lib_base/base/build_config.h
+index a02c9b0..b3f4860 100644
+--- a/Telegram/lib_base/base/build_config.h
++++ b/Telegram/lib_base/base/build_config.h
+@@ -46,9 +46,9 @@
+ #define ARCH_CPU_X86_FAMILY 1
+ #define ARCH_CPU_X86 1
+ #define ARCH_CPU_32_BITS 1
+-#elif defined(__aarch64__)
++#elif defined(__aarch64__) || defined(__powerpc64__)
+ #define ARCH_CPU_64_BITS 1
+-#elif defined(_M_ARM) || defined(__arm__)
++#elif defined(_M_ARM) || defined(__arm__) || defined(__powerpc__)
+ #define ARCH_CPU_32_BITS 1
+ #else
+ #error Please add support for your architecture in base/build_config.h
+--
+2.24.1
+