forked from mirrors/gecko-dev
Bug 1482797 - Don't use MADV_FREE on Linux until we support it properly. r=njn
This commit is contained in:
parent
aa97351aba
commit
5f59918688
1 changed files with 5 additions and 0 deletions
|
|
@ -207,6 +207,11 @@ getenv(const char* name)
|
|||
#endif
|
||||
|
||||
#ifndef XP_WIN
|
||||
// Newer Linux systems support MADV_FREE, but we're not supporting
|
||||
// that properly. bug #1406304.
|
||||
#if defined(XP_LINUX) && defined(MADV_FREE)
|
||||
#undef MADV_FREE
|
||||
#endif
|
||||
#ifndef MADV_FREE
|
||||
#define MADV_FREE MADV_DONTNEED
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue