diff options
author | ak <ak@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-17 19:47:12 +0000 |
---|---|---|
committer | ak <ak@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-17 19:47:12 +0000 |
commit | a46cbe3b6dc951f326cedad3152ad3361fc3f3e7 (patch) | |
tree | cdecd1affb76761a09cde5853b659fc78aeb2ef4 /gcc/ggc-page.c | |
parent | 63f9aa206d15a4c072915f4f6117ece2773dd4f7 (diff) | |
download | gcc-a46cbe3b6dc951f326cedad3152ad3361fc3f3e7.tar.gz |
2011-10-17 Andi Kleen <ak@linux.intel.com>
* ggc-page.c (USING_MADVISE): Adjust ifdef to check for
USING_MMAP.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180107 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 9b352913eb4..2da99db9cf8 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -50,7 +50,7 @@ along with GCC; see the file COPYING3. If not see #define USING_MALLOC_PAGE_GROUPS #endif -#if defined(HAVE_MADVISE) && defined(MADV_DONTNEED) +#if defined(HAVE_MADVISE) && defined(MADV_DONTNEED) && defined(USING_MMAP) # define USING_MADVISE #endif |