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
|
|
@ -35,6 +35,9 @@
|
|||
#if defined(__FreeBSD__) || defined(__MidnightBSD__)
|
||||
#include <sys/thr.h>
|
||||
#endif
|
||||
#if defined(__GNU__)
|
||||
#include <mach.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
|
|
@ -221,6 +224,9 @@ static pid_t _gettid(void)
|
|||
long pid;
|
||||
thr_self(&pid);
|
||||
return (pid_t)pid;
|
||||
#elif defined(__GNU__)
|
||||
mach_port_t thread = mach_thread_self();
|
||||
return (pid_t)thread;
|
||||
#else
|
||||
#error "No gettid impl"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue