summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-01-18 12:31:16 +0000
committerAlexander Potapenko <glider@google.com>2013-01-18 12:31:16 +0000
commita6d40f638e7b87b17d58ff695e1a5ba0e87a46cf (patch)
treea36f12f4faf4f41908151dbb58fe29a7ea540470
parent91181eaa591444816f897ddae10af5300afc87e5 (diff)
downloadbcm5719-llvm-a6d40f638e7b87b17d58ff695e1a5ba0e87a46cf.tar.gz
bcm5719-llvm-a6d40f638e7b87b17d58ff695e1a5ba0e87a46cf.zip
[ASan] Fix compilation on Mac.
llvm-svn: 172810
-rw-r--r--compiler-rt/lib/asan/asan_intercepted_functions.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/compiler-rt/lib/asan/asan_intercepted_functions.h b/compiler-rt/lib/asan/asan_intercepted_functions.h
index 0c82cbca338..403c49130e3 100644
--- a/compiler-rt/lib/asan/asan_intercepted_functions.h
+++ b/compiler-rt/lib/asan/asan_intercepted_functions.h
@@ -18,6 +18,8 @@
#include "interception/interception.h"
#include "sanitizer_common/sanitizer_platform_interceptors.h"
+#include <stdarg.h>
+
using __sanitizer::uptr;
// Use macro to describe if specific function should be
@@ -227,15 +229,15 @@ DECLARE_FUNCTION_AND_WRAPPER(CFStringRef, CFStringCreateCopy,
CFAllocatorRef alloc, CFStringRef str);
DECLARE_FUNCTION_AND_WRAPPER(void, free, void* ptr);
-DECLARE_FUNCTION_AND_WRAPPER(int, vscanf, const char *format, va_list ap)
+DECLARE_FUNCTION_AND_WRAPPER(int, vscanf, const char *format, va_list ap);
DECLARE_FUNCTION_AND_WRAPPER(int, vsscanf, const char *str, const char *format,
- va_list ap)
+ va_list ap);
DECLARE_FUNCTION_AND_WRAPPER(int, vfscanf, void *stream, const char *format,
- va_list ap)
-DECLARE_FUNCTION_AND_WRAPPER(int, scanf, const char *format, ...)
-DECLARE_FUNCTION_AND_WRAPPER(int, fscanf, void* stream, const char *format, ...)
+ va_list ap);
+DECLARE_FUNCTION_AND_WRAPPER(int, scanf, const char *format, ...);
+DECLARE_FUNCTION_AND_WRAPPER(int, fscanf, void* stream, const char *format, ...);
DECLARE_FUNCTION_AND_WRAPPER(int, sscanf,
- const char *str, const char *format, ...)
+ const char *str, const char *format, ...);
#if MAC_INTERPOSE_FUNCTIONS && !defined(MISSING_BLOCKS_SUPPORT)
DECLARE_FUNCTION_AND_WRAPPER(void, dispatch_group_async,
OpenPOWER on IntegriCloud