kdrive: linux: replace __uid_t and __gid_t by standard types

Fix build on musl.

Backport from: 126eb37529
Fixes: #2162

Signed-off-by: callmetango <callmetango@users.noreply.github.com>
This commit is contained in:
callmetango
2026-04-07 21:27:39 +00:00
committed by Enrico Weigelt
parent c272ad6571
commit 1f6966673a

View File

@@ -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;