Index: compiler-rt/trunk/test/asan/TestCases/dlclose-test.cc =================================================================== --- compiler-rt/trunk/test/asan/TestCases/dlclose-test.cc +++ compiler-rt/trunk/test/asan/TestCases/dlclose-test.cc @@ -33,6 +33,13 @@ #include +#if defined(__FreeBSD__) +// The MAP_NORESERVE define has been removed in FreeBSD 11.x, and even before +// that, it was never implemented. So just define it to zero. +#undef MAP_NORESERVE +#define MAP_NORESERVE 0 +#endif + using std::string; typedef int *(fun_t)();