diff --git a/app/streaming/streamutils.cpp b/app/streaming/streamutils.cpp index e768e348..b4050662 100644 --- a/app/streaming/streamutils.cpp +++ b/app/streaming/streamutils.cpp @@ -38,7 +38,6 @@ #include #include #else -#define __NR_riscv_hwprobe 258 struct riscv_hwprobe { int64_t key; uint64_t value; @@ -46,6 +45,10 @@ struct riscv_hwprobe { #define RISCV_HWPROBE_KEY_IMA_EXT_0 4 #endif +#ifndef __NR_riscv_hwprobe +#define __NR_riscv_hwprobe 258 +#endif + // RISC-V Scalar AES [E]ncryption and [D]ecryption #ifndef RISCV_HWPROBE_EXT_ZKND #define RISCV_HWPROBE_EXT_ZKND (1 << 11)