summaryrefslogtreecommitdiffstats
path: root/win/tclWinSerial.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/tclWinSerial.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/tclWinSerial.c')
-rw-r--r--win/tclWinSerial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c
index 75d5ffc..b9c9a9f 100644
--- a/win/tclWinSerial.c
+++ b/win/tclWinSerial.c
@@ -932,7 +932,7 @@ SerialInputProc(
bufSize = cStat.cbInQue;
}
} else {
- errno = *errorCode = EAGAIN;
+ errno = *errorCode = EWOULDBLOCK;
return -1;
}
} else {
@@ -1034,7 +1034,7 @@ SerialOutputProc(
* the channel is in non-blocking mode.
*/
- errno = EAGAIN;
+ errno = EWOULDBLOCK;
goto error1;
}