[compiler-rt] r298837 - Fix build error:

Ismail Donmez via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 03:17:03 PDT 2017


Author: ismail
Date: Mon Mar 27 05:17:03 2017
New Revision: 298837

URL: http://llvm.org/viewvc/llvm-project?rev=298837&view=rev
Log:
Fix build error:

In file included from /home/abuild/rpmbuild/BUILD/llvm/projects/compiler-rt/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc:15:
../projects/compiler-rt/lib/xray/tests/../xray_fdr_logging_impl.h:221:21: error: use of undeclared identifier 'CLOCK_MONOTONIC'
  wall_clock_reader(CLOCK_MONOTONIC, &TS);
                    ^
1 error generated.


Modified:
    compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h

Modified: compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h?rev=298837&r1=298836&r2=298837&view=diff
==============================================================================
--- compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h (original)
+++ compiler-rt/trunk/lib/xray/xray_fdr_logging_impl.h Mon Mar 27 05:17:03 2017
@@ -24,6 +24,7 @@
 #include <memory>
 #include <string>
 #include <sys/syscall.h>
+#include <time.h>
 #include <unistd.h>
 
 #include "sanitizer_common/sanitizer_common.h"




More information about the llvm-commits mailing list