tests/server/sockfilt.c: Set Windows Console to binary mode

This commit is contained in:
Marc Hoersken 2013-01-06 22:25:18 +01:00
parent a77d18efaf
commit 5475ac279d

View File

@ -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();