summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/interception.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/interception/interception.h')
-rw-r--r--compiler-rt/lib/interception/interception.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/interception.h b/compiler-rt/lib/interception/interception.h
index 7dad07fc6eb..e5f8916c186 100644
--- a/compiler-rt/lib/interception/interception.h
+++ b/compiler-rt/lib/interception/interception.h
@@ -19,6 +19,15 @@
# error "Interception doesn't work on this operating system."
#endif
+#include "sanitizer/common_interface_defs.h"
+
+// These typedefs should be used only in the interceptor definitions to replace
+// the standard system types (e.g. SSIZE_T instead of ssize_t)
+typedef __sanitizer::uptr SIZE_T;
+typedef __sanitizer::sptr SSIZE_T;
+typedef __sanitizer::u64 OFF_T;
+typedef __sanitizer::u64 OFF64_T;
+
// How to use this library:
// 1) Include this header to define your own interceptors
// (see details below).
OpenPOWER on IntegriCloud