forked from OSchip/llvm-project
[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:
parent
e812ca00bb
commit
520e51d951
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue