[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);