From: Mark Andrews Date: Wed, 12 Sep 2012 03:51:49 +0000 (+1000) Subject: O_BINARY -> _O_BINARY X-Git-Tag: v9.10.0a1~899 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0b9ea3fca6019f741f18376b5b26c0fa0835477f;p=thirdparty%2Fbind9.git O_BINARY -> _O_BINARY --- diff --git a/lib/isc/win32/file.c b/lib/isc/win32/file.c index 9d6f1e77e2b..65a900d0699 100644 --- a/lib/isc/win32/file.c +++ b/lib/isc/win32/file.c @@ -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);