summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-01-24 09:15:08 +0000
committerAlexander Potapenko <glider@google.com>2013-01-24 09:15:08 +0000
commit56a3724cf19c10059080e5a7486a1846b8994c6c (patch)
treefb52791eeebea93db81f91cb5b49bfd1a9c722d8
parent6e406cda4b87fc77723abfd6aae31e650607c278 (diff)
downloadbcm5719-llvm-56a3724cf19c10059080e5a7486a1846b8994c6c.tar.gz
bcm5719-llvm-56a3724cf19c10059080e5a7486a1846b8994c6c.zip
[ASan] fix compilation on Mac by adding a missing pwrite parameter.
llvm-svn: 173333
-rw-r--r--compiler-rt/lib/asan/asan_intercepted_functions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_intercepted_functions.h b/compiler-rt/lib/asan/asan_intercepted_functions.h
index d3f23fa081e..60c62748ff9 100644
--- a/compiler-rt/lib/asan/asan_intercepted_functions.h
+++ b/compiler-rt/lib/asan/asan_intercepted_functions.h
@@ -171,7 +171,8 @@ DECLARE_FUNCTION_AND_WRAPPER(SSIZE_T, pread64, int fd, void *buf,
DECLARE_FUNCTION_AND_WRAPPER(SSIZE_T, write, int fd, void *ptr, SIZE_T count);
# endif
# if SANITIZER_INTERCEPT_PWRITE
-DECLARE_FUNCTION_AND_WRAPPER(SSIZE_T, pwrite, int fd, void *ptr, SIZE_T count);
+DECLARE_FUNCTION_AND_WRAPPER(SSIZE_T, pwrite,
+ int fd, void *ptr, SIZE_T count, OFF_T offset);
# endif
# if ASAN_INTERCEPT_MLOCKX
OpenPOWER on IntegriCloud