mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Avoid compiler warning by #ifdef'ing a function used only on Linux.
This commit is contained in:
parent
a76ccfe64b
commit
65aea7c05a
1 changed files with 2 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ exit:
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
static int check_flatpak(struct pw_impl_client *client, int pid)
|
static int check_flatpak(struct pw_impl_client *client, int pid)
|
||||||
{
|
{
|
||||||
char root_path[2048];
|
char root_path[2048];
|
||||||
|
|
@ -229,6 +230,7 @@ static int check_flatpak(struct pw_impl_client *client, int pid)
|
||||||
close(info_fd);
|
close(info_fd);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
context_check_access(void *data, struct pw_impl_client *client)
|
context_check_access(void *data, struct pw_impl_client *client)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue