diff options
Diffstat (limited to 'monitor_mm.c')
-rw-r--r-- | monitor_mm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/monitor_mm.c b/monitor_mm.c index 0076c4210..c7662d807 100644 --- a/monitor_mm.c +++ b/monitor_mm.c | |||
@@ -84,13 +84,11 @@ mm_create(struct mm_master *mmalloc, size_t size) | |||
84 | */ | 84 | */ |
85 | mm->mmalloc = mmalloc; | 85 | mm->mmalloc = mmalloc; |
86 | 86 | ||
87 | #if defined(HAVE_MMAP) && defined(MAP_ANON) | 87 | #ifdef HAVE_MMAP_ANON_SHARED |
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) | ||
91 | fatal("mmap(%lu): %s", (u_long)size, strerror(errno)); | ||
92 | #else | 90 | #else |
93 | fatal("%s: UsePrivilegeSeparation=yes not supported", | 91 | fatal("%s: UsePrivilegeSeparation=yes and Compression=yes not supported", |
94 | __func__); | 92 | __func__); |
95 | #endif | 93 | #endif |
96 | 94 | ||