diff --git a/lldb/packages/Python/lldbsuite/test/make/thread.h b/lldb/packages/Python/lldbsuite/test/make/thread.h --- a/lldb/packages/Python/lldbsuite/test/make/thread.h +++ b/lldb/packages/Python/lldbsuite/test/make/thread.h @@ -9,6 +9,8 @@ #elif defined(__linux__) #include #include +#elif defined(__FreeBSD__) +#include #elif defined(__NetBSD__) #include #elif defined(_WIN32) @@ -22,6 +24,8 @@ return tid; #elif defined(__linux__) return syscall(__NR_gettid); +#elif defined(__FreeBSD__) + return static_cast(pthread_getthreadid_np()); #elif defined(__NetBSD__) // Technically lwpid_t is 32-bit signed integer return static_cast(_lwp_self());