Avoid compiler warning by #ifdef'ing a function used only on Linux.

This commit is contained in:
Gleb Popov 2021-10-22 19:08:24 +03:00
parent a76ccfe64b
commit 65aea7c05a

View file

@ -184,6 +184,7 @@ exit:
return res;
}
#if defined(__linux__)
static int check_flatpak(struct pw_impl_client *client, int pid)
{
char root_path[2048];
@ -229,6 +230,7 @@ static int check_flatpak(struct pw_impl_client *client, int pid)
close(info_fd);
return 1;
}
#endif
static void
context_check_access(void *data, struct pw_impl_client *client)