From b709bf54022b26114ed13e3b9748ef9ed9daa953 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 22 Oct 2026 22:14:04 -0500 Subject: [PATCH] Handle musl headers without __NR_riscv_hwprobe defined --- app/streaming/streamutils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)