Files
qemu-xteink/util
Milan P. Stanić c5757f808b util/util/cpuinfo-riscv.c: fix riscv64 build on musl libc
build fails on musl libc (alpine linux) with this error:

../util/cpuinfo-riscv.c: In function 'cpuinfo_init':
../util/cpuinfo-riscv.c:63:21: error: '__NR_riscv_hwprobe' undeclared (first use in this function); did you mean 'riscv_hwprobe'?
   63 |         if (syscall(__NR_riscv_hwprobe, &pair, 1, 0, NULL, 0) == 0
      |                     ^~~~~~~~~~~~~~~~~~
      |                     riscv_hwprobe
../util/cpuinfo-riscv.c:63:21: note: each undeclared identifier is reported only once for each function it appears in
ninja: subcommand failed

add '#include "asm/unistd.h"' to util/cpuinfo-riscv.c fixes build

Signed-off-by: Milan P. Stanić <mps@arvanta.net>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240905150702.2484-1-mps@arvanta.net>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2024-10-02 15:11:51 +10:00
..
2023-03-20 12:43:50 +01:00
2023-12-19 19:03:38 +01:00
2023-05-23 15:20:15 +08:00
2024-09-20 10:00:27 +03:00
2024-09-13 20:11:13 +02:00
2023-09-07 20:32:11 -05:00
2023-04-24 11:29:00 +02:00
2024-06-21 09:47:22 -03:00
2023-08-31 19:47:43 +02:00
2023-02-02 11:48:20 +00:00
2023-03-28 15:23:10 -07:00
2023-11-15 12:06:05 +03:00
2024-06-19 12:42:03 +02:00
2023-04-27 16:39:43 +02:00
2024-01-30 21:20:20 +03:00
2023-11-03 09:20:31 +01:00