X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_update.c;h=ed79a6a15b1856b2a153468a8c4b0036ff40a9c0;hb=5fc7ff89bdbced9c593c566fea9840a269935dcd;hp=608c3146c39b9ff1f9c4954c9e586c81c6715a21;hpb=a06692172dd04c95f264c7bff81d69ca02294d70;p=rrdtool.git diff --git a/src/rrd_update.c b/src/rrd_update.c index 608c314..ed79a6a 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -10,7 +10,7 @@ #include #include #ifdef HAVE_MMAP - #include +# include #endif #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) @@ -430,9 +430,9 @@ _rrd_update(const char *filename, const char *tmplt, int argc, const char **argv #ifdef HAVE_MADVISE /* when we use mmaping we tell the kernel the mmap equivalent of POSIX_FADV_RANDOM */ - madvise(rrd_mmaped_file,rrd_filesize,MADV_RANDOM); + madvise(rrd_mmaped_file,rrd_filesize,POSIX_MADV_RANDOM); +#endif #endif -#endif /* loop through the arguments. */ for(arg_i=0; arg_i