From 764dfbb1bf146d3a196483f90ec41934665d35b1 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Wed, 10 Aug 2011 04:23:44 +0200 Subject: [PATCH] Open files in binary mode, on msvc too --- src/node_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_file.cc b/src/node_file.cc index 2e7c75a46e..51c569f2ca 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -1107,7 +1107,7 @@ void InitFs(Handle target) { StatWatcher::Initialize(target); #endif -#ifdef __MINGW32__ +#ifndef __POSIX__ // Open files in binary mode by default _fmode = _O_BINARY; #endif