1 Fix PowerPC detection (needs __linux__) and add aarch64 support.
3 Patch sent upstream: https://freeswitch.org/jira/browse/FS-8746
5 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
7 diff -uNr freeswitch-1.6.6.org/libs/libzrtp/include/zrtp_config.h freeswitch-1.6.6/libs/libzrtp/include/zrtp_config.h
8 --- freeswitch-1.6.6.org/libs/libzrtp/include/zrtp_config.h 2016-01-12 17:32:36.000000000 +0100
9 +++ freeswitch-1.6.6/libs/libzrtp/include/zrtp_config.h 2016-01-16 14:09:17.830860603 +0100
11 # define ZRTP_PLATFORM ZP_ANDROID
12 # elif defined(__FreeBSD__)
13 # define ZRTP_PLATFORM ZP_BSD
14 -# elif defined(linux) || defined(__linux)
15 +# elif defined(linux) || defined(__linux__)
16 # include <linux/version.h>
17 # define ZRTP_PLATFORM ZP_LINUX
18 # elif defined(__MACOSX__) || defined (__APPLE__) || defined (__MACH__)
21 #define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
23 -#elif defined(ARM) || defined(_ARM_) || defined(ARMV4) || defined(__arm__)
24 +#elif defined(__AARCH64EB__)
26 + * aarch64, big endian
28 +#define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
30 +#elif defined(ARM) || defined(_ARM_) || defined(ARMV4) || defined(__arm__) || defined(__AARCH64EL__)
32 * ARM, default to little endian