mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-27 06:20:05 +00:00
Handle musl headers without __NR_riscv_hwprobe defined
This commit is contained in:
1 parent
d79536b56d
commit
b709bf5402
1 file changed
+4
-1
@@ -38,7 +38,6 @@
|
|||||||
#include <asm/hwprobe.h>
|
#include <asm/hwprobe.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#else
|
#else
|
||||||
#define __NR_riscv_hwprobe 258
|
|
||||||
struct riscv_hwprobe {
|
struct riscv_hwprobe {
|
||||||
int64_t key;
|
int64_t key;
|
||||||
uint64_t value;
|
uint64_t value;
|
||||||
@@ -46,6 +45,10 @@ struct riscv_hwprobe {
|
|||||||
#define RISCV_HWPROBE_KEY_IMA_EXT_0 4
|
#define RISCV_HWPROBE_KEY_IMA_EXT_0 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __NR_riscv_hwprobe
|
||||||
|
#define __NR_riscv_hwprobe 258
|
||||||
|
#endif
|
||||||
|
|
||||||
// RISC-V Scalar AES [E]ncryption and [D]ecryption
|
// RISC-V Scalar AES [E]ncryption and [D]ecryption
|
||||||
#ifndef RISCV_HWPROBE_EXT_ZKND
|
#ifndef RISCV_HWPROBE_EXT_ZKND
|
||||||
#define RISCV_HWPROBE_EXT_ZKND (1 << 11)
|
#define RISCV_HWPROBE_EXT_ZKND (1 << 11)
|
||||||
|
|||||||
Reference in new issue
Block a user