From d4e9b0f637b9e7db9aad770d52c14f4e1e85d2a4 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 22 Dec 2020 23:10:52 -0800 Subject: [PATCH 1/2] correct the location of errno.h Fixes build on musl Signed-off-by: Khem Raj --- sesman/chansrv/sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sesman/chansrv/sound.c b/sesman/chansrv/sound.c index 92b8ad7c..a5701bf3 100644 --- a/sesman/chansrv/sound.c +++ b/sesman/chansrv/sound.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include From 9cd4acad496c9c5a165e805be95dfb9e9a957ebc Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 22 Dec 2020 23:01:13 -0800 Subject: [PATCH 2/2] riscv doesn't require pointers to be aligned Signed-off-by: Khem Raj --- common/arch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/arch.h b/common/arch.h index ccccfa5a..8c2ac1a4 100644 --- a/common/arch.h +++ b/common/arch.h @@ -84,7 +84,8 @@ typedef int bool_t; #define NEED_ALIGN #elif defined(__x86__) || defined(__x86_64__) || \ defined(__AMD64__) || defined(_M_IX86) || defined (_M_AMD64) || \ - defined(__i386__) || defined(__aarch64__) + defined(__i386__) || defined(__aarch64__) || \ + defined(__riscv) #define NO_NEED_ALIGN #else #warning unknown arch