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