From 5a29d45837876bab4b029c21a3289fd53c9ab6c2 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 26 Dec 2010 16:04:03 +0000 Subject: [PATCH] make MAP_PRIVATE conditional on AIX not being defined ... should fix part of #216 git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4@2157 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_open.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/src/rrd_open.c b/program/src/rrd_open.c index 8e268478..ade18488 100644 --- a/program/src/rrd_open.c +++ b/program/src/rrd_open.c @@ -157,7 +157,9 @@ rrd_file_t *rrd_open( if (rdwr & RRD_READONLY) { flags |= O_RDONLY; #ifdef HAVE_MMAP +# if !defined(AIX) rrd_simple_file->mm_flags = MAP_PRIVATE; +# endif # ifdef MAP_NORESERVE rrd_simple_file->mm_flags |= MAP_NORESERVE; /* readonly, so no swap backing needed */ # endif -- 2.30.2