From de8c4bef3329ce0045b8167cdb96d53b2a1509df Mon Sep 17 00:00:00 2001 From: Kai Luo Date: Wed, 24 Jul 2024 21:30:12 +0800 Subject: [PATCH] [tsan] Include unistd.h to declare gettid() Try to fix https://lab.llvm.org/buildbot/#/builders/176/builds/14400. --- compiler-rt/test/tsan/debug_alloc_stack.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/test/tsan/debug_alloc_stack.cpp b/compiler-rt/test/tsan/debug_alloc_stack.cpp index 8fbcf232a1ac..f45caf373524 100644 --- a/compiler-rt/test/tsan/debug_alloc_stack.cpp +++ b/compiler-rt/test/tsan/debug_alloc_stack.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #ifndef __APPLE__ #include