commit | 34fb715374de8f6af2c36275ba4dd2dbc7e7b5ea | [log] [tgz] |
---|---|---|
author | Alexander Potapenko <glider@google.com> | Fri Oct 18 14:12:15 2013 +0000 |
committer | Alexander Potapenko <glider@google.com> | Fri Oct 18 14:12:15 2013 +0000 |
tree | 575683f0e1f3302a46ec10bea0b8e5e41cbe8264 | |
parent | 9d06f1b8b7b215acd843f6360309eb93d51e88c7 [diff] |
[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
diff --git a/lib/asan/lit_tests/TestCases/atexit_stats.cc b/lib/asan/lit_tests/TestCases/atexit_stats.cc index 10b4fac..e3b1269 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);