Index: compiler-rt/trunk/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc =================================================================== --- compiler-rt/trunk/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc +++ compiler-rt/trunk/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc @@ -1,8 +1,9 @@ // Make sure we don't report a leak nor hang. // RUN: %clangxx_asan -O3 %s -o %t && %run %t #include -#ifndef __APPLE__ +#include +#if !defined(__APPLE__) && !defined(__FreeBSD__) # include -#endif // __APPLE__ +#endif // !__APPLE__ && !__FreeBSD__ int *p = (int*)valloc(1 << 20); int main() { }