diff options
-rw-r--r-- | compiler-rt/lib/asan/asan_interceptors.cc | 4 | ||||
-rw-r--r-- | compiler-rt/lib/asan/lit_tests/TestCases/ioctl.cc | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/asan_interceptors.cc b/compiler-rt/lib/asan/asan_interceptors.cc index bfd82b4a1d3..bdeb4c0361c 100644 --- a/compiler-rt/lib/asan/asan_interceptors.cc +++ b/compiler-rt/lib/asan/asan_interceptors.cc @@ -176,7 +176,7 @@ INTERCEPTOR(int, sigaction, int signum, const struct sigaction *act, #elif SANITIZER_POSIX // We need to have defined REAL(sigaction) on posix systems. DEFINE_REAL(int, sigaction, int signum, const struct sigaction *act, - struct sigaction *oldact); + struct sigaction *oldact) #endif // ASAN_INTERCEPT_SIGNAL_AND_SIGACTION #if ASAN_INTERCEPT_SWAPCONTEXT @@ -381,7 +381,7 @@ INTERCEPTOR(char*, index, const char *string, int c) DECLARE_REAL(char*, index, const char *string, int c) OVERRIDE_FUNCTION(index, strchr); # else -DEFINE_REAL(char*, index, const char *string, int c); +DEFINE_REAL(char*, index, const char *string, int c) # endif # endif #endif // ASAN_INTERCEPT_INDEX diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/ioctl.cc b/compiler-rt/lib/asan/lit_tests/TestCases/ioctl.cc index 08215df6fcf..bf2772d988f 100644 --- a/compiler-rt/lib/asan/lit_tests/TestCases/ioctl.cc +++ b/compiler-rt/lib/asan/lit_tests/TestCases/ioctl.cc @@ -4,6 +4,9 @@ // RUN: %clangxx_asan -O0 -g %s -o %t && %t // RUN: %clangxx_asan -O3 -g %s -o %t && %t +// See https://code.google.com/p/address-sanitizer/issues/detail?id=195 +// XFAIL: darwin + #include <assert.h> #include <stdlib.h> #include <sys/ioctl.h> |