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
2929 #include <sys/auxv.h>
3030 #define HWCAP_RV(letter) (1ul << ((letter) - 'A'))
3131 #endif
32−#ifdef HAVE_SYS_HWPROBE_H
32+#if HAVE_SYS_HWPROBE_H
3333 #include <sys/hwprobe.h>
3434 #endif
3535
3636 int ff_get_cpu_flags_riscv(void)
3737 {
3838 int ret = 0;
39−#ifdef HAVE_SYS_HWPROBE_H
39+#if HAVE_SYS_HWPROBE_H
4040 struct riscv_hwprobe pairs[] = {
4141 { RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 },
4242 { 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