From 126eb37529cc3b4053c43249ee9c4249e05cc322 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 16 Feb 2026 11:36:16 +0100 Subject: [PATCH] kdrive: linux: replace __uid_t and __gid_t by standard types Fix build on musl. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/kdrive/linux/linux.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/kdrive/linux/linux.c b/hw/kdrive/linux/linux.c index e73b95af72..19e44fc1bc 100644 --- a/hw/kdrive/linux/linux.c +++ b/hw/kdrive/linux/linux.c @@ -66,14 +66,12 @@ static void LinuxCheckChown(const char *file) { struct stat st; - __uid_t u; - __gid_t g; int r; if (stat(file, &st) < 0) return; - u = getuid(); - g = getgid(); + uid_t u = getuid(); + gid_t g = getgid(); if (st.st_uid != u || st.st_gid != g) { r = chown(file, u, g); (void) r;