summaryrefslogtreecommitdiffstats
path: root/win/tclWinConsole.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-16 20:33:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-16 20:33:17 (GMT)
commit4638909b08044425c05cc87efd7713ad9c6be4de (patch)
treee8618a22a59ff6f8b295c875e2ebf57b54ab39ce /win/tclWinConsole.c
parent1cc85db9fe34f20eb5109b58d4d5bd0d65140129 (diff)
downloadtcl-4638909b08044425c05cc87efd7713ad9c6be4de.zip
tcl-4638909b08044425c05cc87efd7713ad9c6be4de.tar.gz
tcl-4638909b08044425c05cc87efd7713ad9c6be4de.tar.bz2
Map WSAEWOULDBLOCK to EWOULDBLOCK. Suggested by Reinhard Max.
Diffstat (limited to 'win/tclWinConsole.c')
-rw-r--r--win/tclWinConsole.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index 65e4aed..0ec22c5 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.c
@@ -800,7 +800,7 @@ ConsoleOutputProc(
* the channel is in non-blocking mode.
*/
- errno = EAGAIN;
+ errno = EWOULDBLOCK;
goto error;
}
@@ -1079,7 +1079,7 @@ WaitForRead(
* is in non-blocking mode.
*/
- errno = EAGAIN;
+ errno = EWOULDBLOCK;
return -1;
}