mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
Add GNU/Hurd support
This commit is contained in:
parent
f9559d2e83
commit
8b807ded35
8 changed files with 21 additions and 10 deletions
|
|
@ -143,7 +143,7 @@ static int get_exe_name(int pid, char *buf, size_t buf_size)
|
|||
* (in the current namespace).
|
||||
*/
|
||||
|
||||
#if defined(__linux__)
|
||||
#if defined(__linux__) || defined(__GNU__)
|
||||
spa_scnprintf(path, sizeof(path), "/proc/%u/exe", pid);
|
||||
#elif defined(__FreeBSD__) || defined(__MidnightBSD__)
|
||||
spa_scnprintf(path, sizeof(path), "/proc/%u/file", pid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue