[asan] fix a test on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192960 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc b/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc
index e5b2e66..b0a5015 100644
--- a/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc
+++ b/lib/asan/lit_tests/TestCases/assign_large_valloc_to_global.cc
@@ -1,6 +1,8 @@
 // Make sure we don't report a leak nor hang.
 // RUN: %clangxx_asan -O3 %s -o %t && %t
 #include <stdlib.h>
+#ifndef __APPLE__
 #include <malloc.h>
+#endif  // __APPLE__
 int *p = (int*)valloc(1 << 20);
 int main() { }