projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bindings should invoke new rrd_flushcached (instead of rrd_cmd_flush) -- kevin
[rrdtool.git]
/
src
/
rrd_open.c
diff --git
a/src/rrd_open.c
b/src/rrd_open.c
index
42426c6
..
59526d8
100644
(file)
--- a/
src/rrd_open.c
+++ b/
src/rrd_open.c
@@
-6,10
+6,16
@@
* $Id$
*****************************************************************************/
* $Id$
*****************************************************************************/
+#ifdef WIN32
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
+#endif
+
+#ifdef HAVE_BROKEN_MS_ASYNC
+#include <sys/types.h>
#include <utime.h>
#include <utime.h>
+#endif
#include "rrd_tool.h"
#include "unused.h"
#include "rrd_tool.h"
#include "unused.h"
@@
-464,7
+470,7
@@
void rrd_dontneed(
size_t dontneed_start;
size_t rra_start;
size_t active_block;
size_t dontneed_start;
size_t rra_start;
size_t active_block;
-
unsigned long
i;
+
size_t
i;
ssize_t _page_size = sysconf(_SC_PAGESIZE);
if (rrd_file == NULL) {
ssize_t _page_size = sysconf(_SC_PAGESIZE);
if (rrd_file == NULL) {
@@
-669,6
+675,13
@@
ssize_t rrd_write(
}
}
+/* this is a leftover from the old days, it serves no purpose
+ and is therefore turned into a no-op */
+void rrd_flush(
+ rrd_file_t *rrd_file __attribute__((unused)))
+{
+}
+
/* Initialize RRD header. */
void rrd_init(
/* Initialize RRD header. */
void rrd_init(