[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemacs-devel] [PATCH 2/3] Add missing #ifdef CONFIG_MMAP
From: |
François Revol |
Subject: |
[Qemacs-devel] [PATCH 2/3] Add missing #ifdef CONFIG_MMAP |
Date: |
Wed, 19 Apr 2017 23:46:07 +0200 |
---
buffer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/buffer.c b/buffer.c
index 9fb85be..62c35d1 100644
--- a/buffer.c
+++ b/buffer.c
@@ -764,6 +764,7 @@ void eb_clear(EditBuffer *b)
eb_delete(b, 0, b->total_size);
eb_free_log_buffer(b);
+#ifdef CONFIG_MMAP
eb_munmap_buffer(b);
/* close and reset file handle */
@@ -771,6 +772,7 @@ void eb_clear(EditBuffer *b)
close(b->map_handle);
}
b->map_handle = 0;
+#endif
b->modified = 0;
/* TODO: clear buffer structure */
--
2.11.0