mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
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@comstyle.com>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit f3eca3f387)
Signed-off-by: Brad Smith <brad@comstyle.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user