summaryrefslogtreecommitdiff
path: root/monitor_mm.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_mm.c')
-rw-r--r--monitor_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_mm.c b/monitor_mm.c
index 3231c8786..993925e48 100644
--- a/monitor_mm.c
+++ b/monitor_mm.c
@@ -84,7 +84,7 @@ mm_create(struct mm_master *mmalloc, size_t size)
84 */ 84 */
85 mm->mmalloc = mmalloc; 85 mm->mmalloc = mmalloc;
86 86
87#ifdef HAVE_MMAP 87#if defined(HAVE_MMAP) && defined(MAP_ANON)
88 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, 88 address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED,
89 -1, 0); 89 -1, 0);
90 if (address == MAP_FAILED) 90 if (address == MAP_FAILED)