target/riscv/kvm: do not use non-portable strerrorname_np()
commitd424db235434b8356c6b2d9420b846c7ddcc83ea
authorNatanael Copa <ncopa@alpinelinux.org>
Mon, 18 Dec 2023 16:22:44 +0000 (18 17:22 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 23 Dec 2023 16:29:56 +0000 (23 19:29 +0300)
treec2b64bf632478301dd3130b4502c1744716cc6a8
parent80f1709aa0eb4de09b4240563463f991a5b9d855
target/riscv/kvm: do not use non-portable strerrorname_np()

strerrorname_np is non-portable and breaks building with musl libc.

Use strerror(errno) instead, like we do other places.

Cc: qemu-stable@nongnu.org
Fixes: commit 082e9e4a58ba (target/riscv/kvm: improve 'init_multiext_cfg' error msg)
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2041
Buglink: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15541
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/riscv/kvm/kvm-cpu.c