yate: add patch that adds ppc arch to typedefs.h
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
This commit is contained in:
parent
89df986803
commit
ba0855ebee
2 changed files with 32 additions and 1 deletions
|
@ -13,7 +13,7 @@ RELEASEVER:=5.4.0
|
|||
|
||||
PKG_NAME:=yate
|
||||
PKG_VERSION:=$(RELEASEVER)-1
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://yate.null.ro/tarballs/yate5/
|
||||
|
|
31
net/yate/patches/001-ppc-fix.patch
Normal file
31
net/yate/patches/001-ppc-fix.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
Index: yate/libs/miniwebrtc/typedefs.h
|
||||
===================================================================
|
||||
--- yate.orig/libs/miniwebrtc/typedefs.h
|
||||
+++ yate/libs/miniwebrtc/typedefs.h
|
||||
@@ -79,6 +79,26 @@
|
||||
#elif defined(__mips__)
|
||||
#define WEBRTC_ARCH_32_BITS
|
||||
#define WEBRTC_BIG_ENDIAN
|
||||
+#elif defined(__powerpc64__)
|
||||
+#define WEBRTC_ARCH_PPC64 1
|
||||
+#define WEBRTC_ARCH_64_BITS
|
||||
+#ifdef __LITTLE_ENDIAN__
|
||||
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||
+#define WEBRTC_LITTLE_ENDIAN
|
||||
+#else
|
||||
+#define WEBRTC_ARCH_BIG_ENDIAN
|
||||
+#define WEBRTC_BIG_ENDIAN
|
||||
+#endif
|
||||
+#elif defined(__powerpc__)
|
||||
+#define WEBRTC_ARCH_PPC 1
|
||||
+#define WEBRTC_ARCH_32_BITS
|
||||
+#ifdef __LITTLE_ENDIAN__
|
||||
+#define WEBRTC_ARCH_LITTLE_ENDIAN
|
||||
+#define WEBRTC_LITTLE_ENDIAN
|
||||
+#else
|
||||
+#define WEBRTC_ARCH_BIG_ENDIAN
|
||||
+#define WEBRTC_BIG_ENDIAN
|
||||
+#endif
|
||||
#else
|
||||
#error Please add support for your architecture in typedefs.h
|
||||
#endif
|
Loading…
Reference in a new issue