[Sanitizers] The MAP_NORESERVE define has been removed in FreeBSD 11.x,

and even before that, it was never implemented.  Just define it to zero
instead, so compiler-rt can compile on FreeBSD 11 and later.

Differential Revision: http://reviews.llvm.org/D7485

llvm-svn: 228871
This commit is contained in:
Dimitry Andric 2015-02-11 19:48:27 +00:00
parent 05df16d809
commit 349e062695
1 changed files with 7 additions and 0 deletions

View File

@ -30,6 +30,13 @@
#include <sys/personality.h>
#endif
#if SANITIZER_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
namespace __sanitizer {
// ------------- sanitizer_common.h