summaryrefslogtreecommitdiffstats
path: root/monitor_mm.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2002-04-07 22:36:49 +0000
committerKevin Steves <stevesk@pobox.com>2002-04-07 22:36:49 +0000
commit265c9d00c37fcce40376db1d553b618a620aa8b7 (patch)
tree4e8159a4c3db3a5dee8bbb736cd8c9c7590be621 /monitor_mm.c
parent4e0bb524a5a7e02d4defd219e2cd610d95651771 (diff)
- (stevesk) wrap munmap() with HAVE_MMAP also.
Diffstat (limited to 'monitor_mm.c')
-rw-r--r--monitor_mm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/monitor_mm.c b/monitor_mm.c
index b9ea978a..3231c878 100644
--- a/monitor_mm.c
+++ b/monitor_mm.c
@@ -130,8 +130,13 @@ mm_destroy(struct mm_master *mm)
mm_freelist(mm->mmalloc, &mm->rb_free);
mm_freelist(mm->mmalloc, &mm->rb_allocated);
+#ifdef HAVE_MMAP
if (munmap(mm->address, mm->size) == -1)
fatal("munmap(%p, %lu)", mm->address, (u_long)mm->size);
+#else
+ fatal("%s: UsePrivilegeSeparation=yes not supported",
+ __FUNCTION__);
+#endif
if (mm->mmalloc == NULL)
xfree(mm);
else