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__)
 // 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>

Reply via email to