summaryrefslogtreecommitdiffstats
path: root/package/freeswitch/0001-zrtp.patch
blob: c1cdeeddc1dfc776b2649b34ff60c7e2bc06b426 (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
28
29
30
31
32
33
Fix PowerPC detection (needs __linux__) and add aarch64 support.

Patch sent upstream: https://freeswitch.org/jira/browse/FS-8746

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

diff -uNr freeswitch-1.6.6.org/libs/libzrtp/include/zrtp_config.h freeswitch-1.6.6/libs/libzrtp/include/zrtp_config.h
--- freeswitch-1.6.6.org/libs/libzrtp/include/zrtp_config.h	2016-01-12 17:32:36.000000000 +0100
+++ freeswitch-1.6.6/libs/libzrtp/include/zrtp_config.h	2016-01-16 14:09:17.830860603 +0100
@@ -21,7 +21,7 @@
 #		define ZRTP_PLATFORM ZP_ANDROID
 #	elif defined(__FreeBSD__)
 #		define ZRTP_PLATFORM ZP_BSD
-#	elif defined(linux) || defined(__linux)
+#	elif defined(linux) || defined(__linux__)
 #		include <linux/version.h>
 #		define ZRTP_PLATFORM ZP_LINUX
 #	elif defined(__MACOSX__) || defined (__APPLE__) || defined (__MACH__)
@@ -88,7 +88,13 @@
  */
 #define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
 
-#elif defined(ARM) || defined(_ARM_) || defined(ARMV4) || defined(__arm__)
+#elif defined(__AARCH64EB__)
+/*
+ * aarch64, big endian
+ */
+#define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
+
+#elif defined(ARM) || defined(_ARM_) || defined(ARMV4) || defined(__arm__) || defined(__AARCH64EL__)
 /*
  * ARM, default to little endian
  */
OpenPOWER on IntegriCloud