2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

O_BINARY -> _O_BINARY

This commit is contained in:
Mark Andrews
2012-09-12 13:51:49 +10:00
parent 771e68ab7f
commit 0b9ea3fca6

View File

@@ -52,7 +52,7 @@ gettemp(char *path, isc_boolean_t binary, int *doopen) {
int flags = O_CREAT|O_EXCL|O_RDWR;
if (binary)
flags |= O_BINARY;
flags |= _O_BINARY;
trv = strrchr(path, 'X');
trv++;
@@ -380,7 +380,7 @@ openuniquemode(char *templet, int mode, isc_boolean_t binary, FILE **fp) {
#else
(void)fchmod(fd, mode);
#endif
f = fdopen(fd, binary ? "wb+", "w+");
f = fdopen(fd, binary ? "wb+" : "w+");
if (f == NULL) {
result = isc__errno2result(errno);
(void)remove(templet);