diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2013-01-06 22:25:18 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2013-01-06 22:30:42 +0100 |
commit | 5475ac279dfdeb5b3d0a162d635b3439469a0ff4 (patch) | |
tree | 6bf98da8da306b3b60d30dec326e33c12ce208cc /tests | |
parent | a77d18efaf47046729e3c81033b3d5c12eafe5ae (diff) |
tests/server/sockfilt.c: Set Windows Console to binary mode
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/sockfilt.c | 4 |
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(); |