From 0b9ea3fca6019f741f18376b5b26c0fa0835477f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 12 Sep 2012 13:51:49 +1000 Subject: [PATCH] O_BINARY -> _O_BINARY --- lib/isc/win32/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/win32/file.c b/lib/isc/win32/file.c index 9d6f1e77e2..65a900d069 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);