summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: afbab79)
raw | patch | inline | side by side (parent: afbab79)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 18 Apr 2004 10:21:31 +0000 (10:21 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 18 Apr 2004 10:21:31 +0000 (10:21 +0000) |
program/src/rrd_restore.c | patch | blob | history |
index 61b82c16e4fa88660e33420dbdbb4243eb307909..89f34c2753917f2d6a5e67eec1a1982ac6ecdb0c 100644 (file)
if (strcmp("-",file_name)==0){
rrd_file= stdout;
} else {
- fdflags = O_WRONLY|O_CREAT|O_BINARY|O_EXCL;
+#ifdef WIN32
+ fdflags = O_RDWR|O_BINARY|O_CREAT|O_EXCL;
+#else
+ fdflags = O_WRONLY|O_CREAT|O_EXCL;
+#endif
if (force_overwrite == 0) {
fdflags |= O_EXCL;
}