From: Mark Andrews Date: Wed, 12 Sep 2012 03:51:49 +0000 (+1000) Subject: O_BINARY -> _O_BINARY X-Git-Tag: v9.7.7~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0d69cf8f5e91be1b761baf719dd51618f420362;p=thirdparty%2Fbind9.git O_BINARY -> _O_BINARY --- diff --git a/lib/isc/win32/file.c b/lib/isc/win32/file.c index 64572a276d9..34aa52f8173 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++; @@ -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);