[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
This commit is contained in:
Krzysztof Parzyszek 2017-01-25 14:20:30 +00:00
parent e812ca00bb
commit 520e51d951
2 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,7 @@ struct FDRLoggingOptions {
};
// Flight Data Recorder mode implementation interfaces.
XRayLogInitStatus FDRLogging_init(std::size_t BufferSize, std::size_t BufferMax,
XRayLogInitStatus FDRLogging_init(size_t BufferSize, size_t BufferMax,
void *Options, size_t OptionsSize);
XRayLogInitStatus FDRLogging_finalize();
void FDRLogging_handleArg0(int32_t FuncId, XRayEntryType Entry);

View File

@ -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>