]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
O_BINARY -> _O_BINARY
authorMark Andrews <marka@isc.org>
Wed, 12 Sep 2012 03:51:49 +0000 (13:51 +1000)
committerMark Andrews <marka@isc.org>
Wed, 12 Sep 2012 03:55:47 +0000 (13:55 +1000)
lib/isc/win32/file.c

index 64572a276d991953a992800ce5d08e111fd24cf1..34aa52f817341736f6a4275fd7cfe034df4248d0 100644 (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++;
@@ -341,7 +341,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);