diff --git a/include/knowhere/comp/thread_pool.h b/include/knowhere/comp/thread_pool.h index 29d1eb629..b26b5706b 100644 --- a/include/knowhere/comp/thread_pool.h +++ b/include/knowhere/comp/thread_pool.h @@ -12,7 +12,14 @@ #pragma once #include + +#ifdef __linux__ #include +#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30 +#include +#define gettid() syscall(SYS_gettid) +#endif +#endif #include #include