diff options
-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(); |