diff options
author | Vitaly Buka <vitalybuka@google.com> | 2019-01-21 02:21:51 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2019-01-21 02:21:51 +0000 |
commit | 0ed6a9c489ca2fd0c403f9a445cbf266e845af21 (patch) | |
tree | 0d43bdc136a169d6ef06e5c305fa5a11aebff063 /lib/safestack | |
parent | 107a0760e57ed14a389fce2e4beca86dfaea033c (diff) | |
download | compiler-rt-0ed6a9c489ca2fd0c403f9a445cbf266e845af21.tar.gz |
[safestack] Fix FreeBSD runtime build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@351715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/safestack')
-rw-r--r-- | lib/safestack/safestack_platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/safestack/safestack_platform.h b/lib/safestack/safestack_platform.h index c36dc3614..8801b2081 100644 --- a/lib/safestack/safestack_platform.h +++ b/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; |