summaryrefslogtreecommitdiff
path: root/deps/uv/test/runner-win.c
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2012-05-28 23:52:34 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2012-05-29 18:26:40 +0400
commit761e0c460a8e9a40cd1126cf0ba354e50e38d6da (patch)
tree314a084790dd95dcea5ea4928321a9d47c3aaa93 /deps/uv/test/runner-win.c
parentfa9aa1c961125f5c5527c7b5e3720eadf84a979f (diff)
downloadandroid-node-v8-761e0c460a8e9a40cd1126cf0ba354e50e38d6da.tar.gz
android-node-v8-761e0c460a8e9a40cd1126cf0ba354e50e38d6da.tar.bz2
android-node-v8-761e0c460a8e9a40cd1126cf0ba354e50e38d6da.zip
deps: upgrade libuv to 7556590
Diffstat (limited to 'deps/uv/test/runner-win.c')
-rw-r--r--deps/uv/test/runner-win.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/uv/test/runner-win.c b/deps/uv/test/runner-win.c
index e758dd1dd3..ad36719c8f 100644
--- a/deps/uv/test/runner-win.c
+++ b/deps/uv/test/runner-win.c
@@ -19,6 +19,7 @@
* IN THE SOFTWARE.
*/
+#include <fcntl.h>
#include <io.h>
#include <malloc.h>
#include <stdio.h>
@@ -44,6 +45,10 @@ void platform_init(int argc, char **argv) {
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX |
SEM_NOOPENFILEERRORBOX);
+ _setmode(0, _O_BINARY);
+ _setmode(1, _O_BINARY);
+ _setmode(2, _O_BINARY);
+
/* Disable stdio output buffering. */
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);