History

lavu/riscv: fix build without <sys/hwprobe.h>

Rémi Denis-Courmont committed 2 years ago

Commit 1f150a61 parent 4e069ba1 file · +2 −2Browse files

Unified · Split

libavutil/riscv/cpu.c+2−2
@@ -29,14 +29,14 @@ · 28 unmodified lines
29#include <sys/auxv.h>29#include <sys/auxv.h>
30#define HWCAP_RV(letter) (1ul << ((letter) - 'A'))30#define HWCAP_RV(letter) (1ul << ((letter) - 'A'))
31#endif31#endif
32#ifdef HAVE_SYS_HWPROBE_H32#if HAVE_SYS_HWPROBE_H
33#include <sys/hwprobe.h>33#include <sys/hwprobe.h>
34#endif34#endif
35 35
36int ff_get_cpu_flags_riscv(void)36int ff_get_cpu_flags_riscv(void)
37{37{
38 int ret = 0;38 int ret = 0;
39#ifdef HAVE_SYS_HWPROBE_H39#if HAVE_SYS_HWPROBE_H
40 struct riscv_hwprobe pairs[] = {40 struct riscv_hwprobe pairs[] = {
41 { RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 },41 { RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 },
42 { RISCV_HWPROBE_KEY_IMA_EXT_0, 0 },42 { RISCV_HWPROBE_KEY_IMA_EXT_0, 0 },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t