make MAP_PRIVATE conditional on AIX not being defined ... should fix part of #216
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 26 Dec 2010 16:04:03 +0000 (16:04 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 26 Dec 2010 16:04:03 +0000 (16:04 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2157 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_open.c

index 78d5174..5f3723f 100644 (file)
@@ -158,7 +158,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