diff mbox series

[FFmpeg-devel] lavu/riscv: fix build without <sys/hwprobe.h>

Message ID 20240507152843.4674-1-remi@remlab.net
State Accepted
Commit 1f150a68ac2a577a6879798332b3fc027be717de
Headers show
Series [FFmpeg-devel] lavu/riscv: fix build without <sys/hwprobe.h> | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Rémi Denis-Courmont May 7, 2024, 3:28 p.m. UTC
---
 libavutil/riscv/cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Martin Storsjö May 7, 2024, 8:32 p.m. UTC | #1
On Tue, 7 May 2024, Rémi Denis-Courmont wrote:

> ---
> 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 c3683b06d0..69d1afe853 100644
> --- a/libavutil/riscv/cpu.c
> +++ b/libavutil/riscv/cpu.c
> @@ -29,14 +29,14 @@
> #include <sys/auxv.h>
> #define HWCAP_RV(letter) (1ul << ((letter) - 'A'))
> #endif
> -#ifdef HAVE_SYS_HWPROBE_H
> +#if HAVE_SYS_HWPROBE_H
> #include <sys/hwprobe.h>
> #endif
>
> int ff_get_cpu_flags_riscv(void)
> {
>     int ret = 0;
> -#ifdef HAVE_SYS_HWPROBE_H
> +#if HAVE_SYS_HWPROBE_H
>     struct riscv_hwprobe pairs[] = {
>         { RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 },
>         { RISCV_HWPROBE_KEY_IMA_EXT_0, 0 },
> -- 
> 2.43.0

LGTM

// Martin
diff mbox series

Patch

diff --git a/libavutil/riscv/cpu.c b/libavutil/riscv/cpu.c
index c3683b06d0..69d1afe853 100644
--- a/libavutil/riscv/cpu.c
+++ b/libavutil/riscv/cpu.c
@@ -29,14 +29,14 @@ 
 #include <sys/auxv.h>
 #define HWCAP_RV(letter) (1ul << ((letter) - 'A'))
 #endif
-#ifdef HAVE_SYS_HWPROBE_H
+#if HAVE_SYS_HWPROBE_H
 #include <sys/hwprobe.h>
 #endif
 
 int ff_get_cpu_flags_riscv(void)
 {
     int ret = 0;
-#ifdef HAVE_SYS_HWPROBE_H
+#if HAVE_SYS_HWPROBE_H
     struct riscv_hwprobe pairs[] = {
         { RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 },
         { RISCV_HWPROBE_KEY_IMA_EXT_0, 0 },