diff options
author | Alexander Potapenko <glider@google.com> | 2013-10-18 14:12:15 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2013-10-18 14:12:15 +0000 |
commit | 34fb715374de8f6af2c36275ba4dd2dbc7e7b5ea (patch) | |
tree | 575683f0e1f3302a46ec10bea0b8e5e41cbe8264 | |
parent | 9d06f1b8b7b215acd843f6360309eb93d51e88c7 (diff) | |
download | compiler-rt-34fb715374de8f6af2c36275ba4dd2dbc7e7b5ea.tar.gz compiler-rt-34fb715374de8f6af2c36275ba4dd2dbc7e7b5ea.tar.bz2 compiler-rt-34fb715374de8f6af2c36275ba4dd2dbc7e7b5ea.tar.xz |
[ASan] fix compilation of atexit_stats.cc on OSX
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192973 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/asan/lit_tests/TestCases/atexit_stats.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/asan/lit_tests/TestCases/atexit_stats.cc b/lib/asan/lit_tests/TestCases/atexit_stats.cc index 10b4fac4..e3b1269d 100644 --- a/lib/asan/lit_tests/TestCases/atexit_stats.cc +++ b/lib/asan/lit_tests/TestCases/atexit_stats.cc @@ -2,7 +2,9 @@ // RUN: %clangxx_asan -O3 %s -o %t // RUN: ASAN_OPTIONS=atexit=1:print_stats=1 %t 2>&1 | FileCheck %s #include <stdlib.h> +#if !defined(__APPLE__) #include <malloc.h> +#endif int *p1 = (int*)malloc(900); int *p2 = (int*)malloc(90000); int *p3 = (int*)malloc(9000000); |