[FFmpeg-cvslog] libavutil/riscv: Make use of elf_aux_info() on FreeBSD / OpenBSD riscv
Brad Smith
git at videolan.org
Wed Nov 27 08:38:58 EET 2024
ffmpeg | branch: release/7.1 | Brad Smith <brad-at-comstyle.com at ffmpeg.org> | Sun Nov 17 21:02:39 2024 -0500| [64e2864cb983d30162dc9003b5aae81e89c929cd] | committer: Brad Smith
libavutil/riscv: Make use of elf_aux_info() on FreeBSD / OpenBSD riscv
libavutil/riscv: Make use of elf_aux_info() on FreeBSD / OpenBSD riscv
FreeBSD/OpenBSD riscv have elf_aux_info().
Signed-off-by: Brad Smith <brad at comstyle.com>
Signed-off-by: RĂ©mi Denis-Courmont <remi at remlab.net>
(cherry picked from commit f3eca3f387092c596f035a126fba15a30c3a9499)
Signed-off-by: Brad Smith <brad at comstyle.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=64e2864cb983d30162dc9003b5aae81e89c929cd
---
libavutil/riscv/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/riscv/cpu.c b/libavutil/riscv/cpu.c
index 4ec6d6c826..163e4fc14a 100644
--- a/libavutil/riscv/cpu.c
+++ b/libavutil/riscv/cpu.c
@@ -25,7 +25,7 @@
#include "libavutil/log.h"
#include "config.h"
-#if HAVE_GETAUXVAL
+#if HAVE_GETAUXVAL || HAVE_ELF_AUX_INFO
#include <sys/auxv.h>
#define HWCAP_RV(letter) (1ul << ((letter) - 'A'))
#endif
@@ -84,7 +84,7 @@ int ff_get_cpu_flags_riscv(void)
default:
}
}
-#elif HAVE_GETAUXVAL
+#elif HAVE_GETAUXVAL || HAVE_ELF_AUX_INFO
{
const unsigned long hwcap = ff_getauxval(AT_HWCAP);
More information about the ffmpeg-cvslog
mailing list