File riscv.patch of Package yate
Index: yate/libs/miniwebrtc/typedefs.h
===================================================================
--- yate.orig/libs/miniwebrtc/typedefs.h
+++ yate/libs/miniwebrtc/typedefs.h
@@ -102,6 +102,9 @@
#elif defined(__aarch64__)
#define WEBRTC_ARCH_64_BITS
#define WEBRTC_ARCH_LITTLE_ENDIAN
+#elif defined(__riscv) && __riscv_xlen == 64
+#define WEBRTC_ARCH_64_BITS
+#define WEBRTC_ARCH_LITTLE_ENDIAN
#else
#error Please add support for your architecture in typedefs.h
Index: yate/yateclass.h
===================================================================
--- yate.orig/yateclass.h
+++ yate/yateclass.h
@@ -36,7 +36,8 @@
#ifndef _WORDSIZE
#if defined(__arch64__) || defined(__x86_64__) \
|| defined(__amd64__) || defined(__ia64__) \
- || defined(__alpha__) || defined(__sparcv9) || defined(__mips64)
+ || defined(__alpha__) || defined(__sparcv9) || defined(__mips64) \
+ || (defined(__riscv) && __riscv_xlen == 64)
#define _WORDSIZE 64
#else
#define _WORDSIZE 32