summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13899ce)
raw | patch | inline | side by side (parent: 13899ce)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 5 Dec 2008 15:23:45 +0000 (15:23 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 5 Dec 2008 15:23:45 +0000 (15:23 +0000) |
program/src/rrd_open.c | patch | blob | history |
diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c
index 5a908daafc49a01eb285f0d205e246c4af8829ef..d2ec549754d62d1a2d4e5b6597884212fb350599 100644 (file)
--- a/program/src/rrd_open.c
+++ b/program/src/rrd_open.c
} else {
if (rdwr & RRD_READWRITE) {
flags |= O_RDWR;
+#ifdef HAVE_MMAP
+ rrd_simple_file->mm_flags = MAP_SHARED;
+ rrd_simple_file->mm_prot |= PROT_WRITE;
+#endif
}
if (rdwr & RRD_CREAT) {
flags |= (O_CREAT | O_TRUNC);