summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmail Donmez <ismail@i10z.com>2017-03-27 10:17:03 +0000
committerIsmail Donmez <ismail@i10z.com>2017-03-27 10:17:03 +0000
commita2e33e60d2c6772fe9ed032b1c306ed203b11444 (patch)
treeec5b50ae7c74f41d4be24642d993b9d0c2740170
parentcf95f24a07aa0dedbee1d7b53cada8b78db0e308 (diff)
downloadbcm5719-llvm-a2e33e60d2c6772fe9ed032b1c306ed203b11444.tar.gz
bcm5719-llvm-a2e33e60d2c6772fe9ed032b1c306ed203b11444.zip
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. llvm-svn: 298837
-rw-r--r--compiler-rt/lib/xray/xray_fdr_logging_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/xray/xray_fdr_logging_impl.h b/compiler-rt/lib/xray/xray_fdr_logging_impl.h
index c232acbb1d4..caeb2741199 100644
--- a/compiler-rt/lib/xray/xray_fdr_logging_impl.h
+++ b/compiler-rt/lib/xray/xray_fdr_logging_impl.h
@@ -24,6 +24,7 @@
#include <memory>
#include <string>
#include <sys/syscall.h>
+#include <time.h>
#include <unistd.h>
#include "sanitizer_common/sanitizer_common.h"
OpenPOWER on IntegriCloud