summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/xray/xray_utils.cc
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-01-25 14:20:30 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-01-25 14:20:30 +0000
commit520e51d95133736c1773b0ecbe56593e8bb86aa9 (patch)
tree95b55820ccaa613f53dfdf200d54014256e9918d /compiler-rt/lib/xray/xray_utils.cc
parente812ca00bbd50be94f9e0110be5f99b72b2efc07 (diff)
downloadbcm5719-llvm-520e51d95133736c1773b0ecbe56593e8bb86aa9.tar.gz
bcm5719-llvm-520e51d95133736c1773b0ecbe56593e8bb86aa9.zip
[compiler-rt] Fix xray compilation errors: errno and size_t
Include errno.h, and use size_t instead of std::size_t, since stddef.h was included (and not cstddef). llvm-svn: 293057
Diffstat (limited to 'compiler-rt/lib/xray/xray_utils.cc')
-rw-r--r--compiler-rt/lib/xray/xray_utils.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/xray/xray_utils.cc b/compiler-rt/lib/xray/xray_utils.cc
index 3170379c886..02118c4f4b8 100644
--- a/compiler-rt/lib/xray/xray_utils.cc
+++ b/compiler-rt/lib/xray/xray_utils.cc
@@ -16,6 +16,7 @@
#include "xray_defs.h"
#include "xray_flags.h"
#include <cstdio>
+#include <errno.h>
#include <fcntl.h>
#include <iterator>
#include <sys/types.h>
OpenPOWER on IntegriCloud