diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2018-03-23 07:14:30 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-03-31 11:27:49 +0100 |
commit | 4dae40527089e38bc44c0f33056c24bf126cace9 (patch) | |
tree | 41753b68cf60c4b3ca250d6d40c8f3d7eadbca86 /media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64_sparc.patch | |
parent | dev-scheme/chicken-4.13.0-r1: alpha stable (diff) | |
download | gentoo-4dae40527089e38bc44c0f33056c24bf126cace9.tar.gz gentoo-4dae40527089e38bc44c0f33056c24bf126cace9.tar.bz2 gentoo-4dae40527089e38bc44c0f33056c24bf126cace9.zip |
media-libs/libilbc: use patch for ppc/ppc64/sparc now upstream
Bug: https://bugs.gentoo.org/610546
Closes: https://github.com/gentoo/gentoo/pull/7560
Diffstat (limited to 'media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64_sparc.patch')
-rw-r--r-- | media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64_sparc.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64_sparc.patch b/media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64_sparc.patch new file mode 100644 index 000000000000..dcca9c2ac321 --- /dev/null +++ b/media-libs/libilbc/files/libilbc-2.0.2-ppc_ppc64_sparc.patch @@ -0,0 +1,35 @@ +From 4d0c2edf1f9477f80e361e17de638806b1399a51 Mon Sep 17 00:00:00 2001 +From: Rolf Eike Beer <eike@sf-mail.de> +Date: Fri, 23 Mar 2018 01:08:17 +0100 +Subject: [PATCH] add platform definitions for PPC and Sparc (#23) + +The PPC flags are taken from a Gentoo patch. +--- + typedefs.h | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/typedefs.h b/typedefs.h +index 669451626..2f9fe77ea 100644 +--- a/typedefs.h ++++ b/typedefs.h +@@ -47,6 +47,20 @@ + #elif defined(__pnacl__) + #define WEBRTC_ARCH_32_BITS + #define WEBRTC_ARCH_LITTLE_ENDIAN ++#elif defined(__PPC__) ++#define WEBRTC_ARCH_BIG_ENDIAN ++#if defined(__PPC64__) ++#define WEBRTC_ARCH_64_BITS ++#else ++#define WEBRTC_ARCH_32_BITS ++#endif ++#elif defined(__sparc__) ++#define WEBRTC_ARCH_BIG_ENDIAN ++#if __SIZEOF_LONG__ == 8 ++#define WEBRTC_ARCH_64_BITS ++#else ++#define WEBRTC_ARCH_32_BITS ++#endif + #else + #error Please add support for your architecture in typedefs.h + #endif |