From 41593ce28cbf8ea4e7b0406889c9ab6907d7b2b0 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 6 Jun 2015 18:52:50 +0000 Subject: [PATCH] webrtc-audio-processing: fix build on unknown platforms. --- .../webrtc-fix-typedefs-on-other-arches.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/webrtc-audio-processing/patches/webrtc-fix-typedefs-on-other-arches.patch diff --git a/srcpkgs/webrtc-audio-processing/patches/webrtc-fix-typedefs-on-other-arches.patch b/srcpkgs/webrtc-audio-processing/patches/webrtc-fix-typedefs-on-other-arches.patch new file mode 100644 index 00000000000..fe8aa638c9c --- /dev/null +++ b/srcpkgs/webrtc-audio-processing/patches/webrtc-fix-typedefs-on-other-arches.patch @@ -0,0 +1,24 @@ +--- src/typedefs.h 2011-10-21 00:29:33.000000000 -0400 ++++ src/typedefs.h 2014-01-28 18:42:57.816865572 -0500 +@@ -77,7 +77,19 @@ + #define WEBRTC_ARCH_32_BITS + #define WEBRTC_ARCH_LITTLE_ENDIAN + #else +-#error Please add support for your architecture in typedefs.h ++/* instead of failing, use typical unix defines... */ ++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ++#define WEBRTC_ARCH_LITTLE_ENDIAN ++#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ++#define WEBRTC_ARCH_BIG_ENDIAN ++#else ++#error __BYTE_ORDER__ is not defined! ++#endif ++#if defined(__LP64__) ++#define WEBRTC_ARCH_64_BITS ++#else ++#define WEBRTC_ARCH_32_BITS ++#endif + #endif + + #if defined(__SSE2__) || defined(_MSC_VER) +