summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/safestack/safestack_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/safestack/safestack_platform.h b/compiler-rt/lib/safestack/safestack_platform.h
index c36dc3614b4..8801b20817e 100644
--- a/compiler-rt/lib/safestack/safestack_platform.h
+++ b/compiler-rt/lib/safestack/safestack_platform.h
@@ -24,6 +24,10 @@
#include <lwp.h>
#endif
+#if SANITIZER_FREEBSD
+#include <sys/thr.h>
+#endif
+
namespace safestack {
using ThreadId = uint64_t;
OpenPOWER on IntegriCloud