Add check for madvise(2) to configure.ac.

Some platforms, such as Google's Portable Native Client, use Newlib and
thus lack access to madvise(2).  In those instances, pages_purge() is
transformed into a no-op.
This commit is contained in:
Richard Diamond
2014-06-03 02:39:18 -05:00
committed by Jason Evans
parent 70807bc54b
commit 994fad9bda
3 changed files with 24 additions and 2 deletions

View File

@@ -52,6 +52,11 @@
*/
#undef JEMALLOC_HAVE_BUILTIN_CLZ
/*
* Defined if madvise(2) is available.
*/
#undef JEMALLOC_HAVE_MADVISE
/*
* Defined if OSSpin*() functions are available, as provided by Darwin, and
* documented in the spinlock(3) manual page.