mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 09:02:20 +00:00
lavu/riscv: fix build without <sys/hwprobe.h>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
601f8fa491
commit
dbf187f438
@ -29,14 +29,14 @@
|
|||||||
#include <sys/auxv.h>
|
#include <sys/auxv.h>
|
||||||
#define HWCAP_RV(letter) (1ul << ((letter) - 'A'))
|
#define HWCAP_RV(letter) (1ul << ((letter) - 'A'))
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_HWPROBE_H
|
#if HAVE_SYS_HWPROBE_H
|
||||||
#include <sys/hwprobe.h>
|
#include <sys/hwprobe.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int ff_get_cpu_flags_riscv(void)
|
int ff_get_cpu_flags_riscv(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
#ifdef HAVE_SYS_HWPROBE_H
|
#if HAVE_SYS_HWPROBE_H
|
||||||
struct riscv_hwprobe pairs[] = {
|
struct riscv_hwprobe pairs[] = {
|
||||||
{ RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 },
|
{ RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 },
|
||||||
{ RISCV_HWPROBE_KEY_IMA_EXT_0, 0 },
|
{ RISCV_HWPROBE_KEY_IMA_EXT_0, 0 },
|
||||||
|
Loading…
Reference in New Issue
Block a user