[compiler-rt] r351715 - [safestack] Fix FreeBSD runtime build

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 20 18:21:52 PST 2019


Author: vitalybuka
Date: Sun Jan 20 18:21:51 2019
New Revision: 351715

URL: http://llvm.org/viewvc/llvm-project?rev=351715&view=rev
Log:
[safestack] Fix FreeBSD runtime build

Modified:
    compiler-rt/trunk/lib/safestack/safestack_platform.h

Modified: compiler-rt/trunk/lib/safestack/safestack_platform.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/safestack/safestack_platform.h?rev=351715&r1=351714&r2=351715&view=diff
==============================================================================
--- compiler-rt/trunk/lib/safestack/safestack_platform.h (original)
+++ compiler-rt/trunk/lib/safestack/safestack_platform.h Sun Jan 20 18:21:51 2019
@@ -24,6 +24,10 @@
 #include <lwp.h>
 #endif
 
+#if SANITIZER_FREEBSD
+#include <sys/thr.h>
+#endif
+
 namespace safestack {
 
 using ThreadId = uint64_t;




More information about the llvm-commits mailing list