diff --git a/src/rrd_open.c b/src/rrd_open.c
index 0de9b395baefc9fe83b2dda77ea50c6e916298b0..46a5fcf412b6b0a2beb41990e49ac97c528d500b 100644 (file)
--- a/src/rrd_open.c
+++ b/src/rrd_open.c
goto out_close;
}
rrd_simple_file->file_start = data;
- if (rdwr & RRD_CREAT) {
- goto out_done;
- }
#endif
if (rdwr & RRD_CREAT)
goto out_done;
int whence)
{
off_t ret = 0;
+#ifndef HAVE_MMAP
rrd_simple_file_t *rrd_simple_file;
rrd_simple_file = (rrd_simple_file_t *)rrd_file->pvt;
-
+#endif
+
#ifdef HAVE_MMAP
if (whence == SEEK_SET)
rrd_file->pos = off;