This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new b1d2190f5f avutil/riscv: Include unistd.h for musl Linux
b1d2190f5f is described below
commit b1d2190f5f8430fce061da0cc33dcf8f1c3922d1
Author: WyattBlue <[email protected]>
AuthorDate: Fri Mar 20 10:52:14 2026 -0400
Commit: michaelni <[email protected]>
CommitDate: Sun Jun 14 13:51:25 2026 +0000
avutil/riscv: Include unistd.h for musl Linux
Before, glibc appears to transitively pull in the syscall number
definitions, but musl does not do this. Thus, `__NR_riscv_hwprobe`
is undeclared and an error is emitted.
Fix this by including `<asm/unistd.h>`, which makes the macro
visible on musl.
---
libavutil/riscv/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavutil/riscv/cpu.c b/libavutil/riscv/cpu.c
index 8cc91625c7..481d63a39f 100644
--- a/libavutil/riscv/cpu.c
+++ b/libavutil/riscv/cpu.c
@@ -36,6 +36,7 @@
#include <sys/hwprobe.h>
#elif HAVE_ASM_HWPROBE_H
#include <asm/hwprobe.h>
+#include <asm/unistd.h>
#include <sys/syscall.h>
#include <unistd.h>
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]