Include <pthread.h> for pthread_self

Fixes compilation on Gentoo Linux with clang/libc++ 21.
This commit is contained in:
Katalin Rebhan 2026-04-08 17:56:40 +02:00 committed by Elad
parent 6981e308a0
commit 1d85de6236

View File

@ -51,6 +51,10 @@ static bool has_waitv()
#include <random>
#include <climits>
#ifdef __linux__
#include <pthread.h>
#endif
#include "asm.hpp"
#include "endian.hpp"
#include "tsc.hpp"