Merge branch 'master' into 'master'

hurd: Rather use hurd_thread_self

See merge request pipewire/pipewire!1728
This commit is contained in:
Samuel Thibault 2023-10-08 09:47:36 +00:00
commit 9cd2a5320a

View file

@ -36,7 +36,7 @@
#include <sys/thr.h>
#endif
#if defined(__GNU__)
#include <mach.h>
#include <hurd.h>
#endif
#include <fcntl.h>
#include <unistd.h>
@ -225,7 +225,7 @@ static pid_t _gettid(void)
thr_self(&pid);
return (pid_t)pid;
#elif defined(__GNU__)
mach_port_t thread = mach_thread_self();
mach_port_t thread = hurd_thread_self();
return (pid_t)thread;
#else
#error "No gettid impl"