On 6 Feb 2025, at 19:00, Jessica Clarke <jrt...@jrtc27.com> wrote: > > On 6 Feb 2025, at 18:37, Yuqian Yang <crup...@crupest.life> wrote: >> >> GNU/Hurd does not support gettid. It is specific to Linux. >> --- >> src/utils/threadpool.cc | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/src/utils/threadpool.cc b/src/utils/threadpool.cc >> index 6fa2e88..97efc36 100644 >> --- a/src/utils/threadpool.cc >> +++ b/src/utils/threadpool.cc >> @@ -42,6 +42,8 @@ >> // Linux. >> #if defined(__ANDROID__) >> static pid_t GetTid() { return gettid(); } >> +#elif defined(__GNU__) >> +// GNU/Hurd does not support gettid. >> #elif defined(__GLIBC__) > > Just add && !defined(__GLIBC__) here to mirror its use.
__GNU__ even... > Jess > >> // The glibc wrapper for the gettid() system call was added in glibc 2.30. >> // Emulate it for older versions of glibc. >> -- >> Yuqian Yang <crup...@crupest.life>