projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new trunk based on current 1.2
[rrdtool.git]
/
src
/
rrd_update.c
diff --git
a/src/rrd_update.c
b/src/rrd_update.c
index
608c314
..
ed79a6a
100644
(file)
--- a/
src/rrd_update.c
+++ b/
src/rrd_update.c
@@
-10,7
+10,7
@@
#include <sys/types.h>
#include <fcntl.h>
#ifdef HAVE_MMAP
#include <sys/types.h>
#include <fcntl.h>
#ifdef HAVE_MMAP
-
#
include <sys/mman.h>
+
#
include <sys/mman.h>
#endif
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
#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 */
#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
-#endif
/* loop through the arguments. */
for(arg_i=0; arg_i<argc;arg_i++) {
char *stepper = strdup(argv[arg_i]);
/* loop through the arguments. */
for(arg_i=0; arg_i<argc;arg_i++) {
char *stepper = strdup(argv[arg_i]);