aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2013-01-06 22:25:18 +0100
committerMarc Hoersken <info@marc-hoersken.de>2013-01-06 22:30:42 +0100
commit5475ac279dfdeb5b3d0a162d635b3439469a0ff4 (patch)
tree6bf98da8da306b3b60d30dec326e33c12ce208cc /tests
parenta77d18efaf47046729e3c81033b3d5c12eafe5ae (diff)
tests/server/sockfilt.c: Set Windows Console to binary mode
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sockfilt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index 34eb20b99..38015e22f 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -1087,6 +1087,10 @@ int main(int argc, char *argv[])
#ifdef WIN32
win32_init();
atexit(win32_cleanup);
+
+ setmode(fileno(stdin), O_BINARY);
+ setmode(fileno(stdout), O_BINARY);
+ setmode(fileno(stderr), O_BINARY);
#endif
install_signal_handlers();