projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chart: Fix format string issues in draw_tick callers.
[pspp-builds.git]
/
src
/
data
/
make-file.c
diff --git
a/src/data/make-file.c
b/src/data/make-file.c
index f8719dc67223d6cd1f44be998f49632ac5bdf0ce..2162741a78e416324d07578f49e5d75f5da4a95e 100644
(file)
--- a/
src/data/make-file.c
+++ b/
src/data/make-file.c
@@
-21,6
+21,7
@@
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
+#include <sys/stat.h>
#include <data/file-name.h>
#include <data/make-file.h>
#include <data/file-name.h>
#include <data/make-file.h>
@@
-184,7
+185,7
@@
replace_file_start (const char *file_name, const char *mode,
}
/* Create file by that name. */
}
/* Create file by that name. */
- fd = open (rf->tmp_name, O_WRONLY | O_CREAT | O_EXCL, permissions);
+ fd = open (rf->tmp_name, O_WRONLY | O_CREAT | O_EXCL
| O_BINARY
, permissions);
if (fd >= 0)
break;
if (errno != EEXIST)
if (fd >= 0)
break;
if (errno != EEXIST)