[compiler-rt] r333638 - Missing include

Stephan Bergmann via llvm-commits llvm-commits at lists.llvm.org
Thu May 31 02:26:31 PDT 2018


Author: sberg
Date: Thu May 31 02:26:31 2018
New Revision: 333638

URL: http://llvm.org/viewvc/llvm-project?rev=333638&view=rev
Log:
Missing include

(For some reason, my Mac build complained about unknown pthread_once_t and
PTHREAD_ONCE_INIT, but not about pthread_once itself.)

Modified:
    compiler-rt/trunk/lib/xray/xray_profile_collector.cc

Modified: compiler-rt/trunk/lib/xray/xray_profile_collector.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_profile_collector.cc?rev=333638&r1=333637&r2=333638&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_profile_collector.cc (original)
+++ compiler-rt/trunk/lib/xray/xray_profile_collector.cc Thu May 31 02:26:31 2018
@@ -16,6 +16,7 @@
 #include "sanitizer_common/sanitizer_common.h"
 #include "sanitizer_common/sanitizer_vector.h"
 #include "xray_profiler_flags.h"
+#include <pthread.h>
 #include <memory>
 #include <utility>
 




More information about the llvm-commits mailing list