summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-23 15:53:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-23 15:53:52 (GMT)
commite59a3fc9085a57bbc964aa61790417af5797794d (patch)
tree2e156a8b477c55fb54f1ba2a6bc62c03ef274c6d /win/tclWinSock.c
parent7bfb05f7fb4dd46306021ae1e767db1edae74593 (diff)
parentfa9a43ff5fd981089f0a432872444073f8710c99 (diff)
downloadtcl-e59a3fc9085a57bbc964aa61790417af5797794d.zip
tcl-e59a3fc9085a57bbc964aa61790417af5797794d.tar.gz
tcl-e59a3fc9085a57bbc964aa61790417af5797794d.tar.bz2
Revert some cygwin-related signature changes from [835f8e1e9d] (2010-01-22).
They were an attempt to make the cygwin port compile again, but since cygwin is based on unix this serves no purpose any more. Use EAGAIN in stead of EWOULDBLOCK, because in VS10+ the value of EWOULDBLOCK is no longer the same as EAGAIN Add tclWinError.c to the CYGWIN build.
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r--win/tclWinSock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index 0c1a270..60cc313 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.c
@@ -1195,7 +1195,7 @@ CreateSocket(
if (connect(sock, addrPtr->ai_addr, addrPtr->ai_addrlen)
== SOCKET_ERROR) {
TclWinConvertWSAError((DWORD) WSAGetLastError());
- if (Tcl_GetErrno() != EWOULDBLOCK) {
+ if (Tcl_GetErrno() != EAGAIN) {
goto looperror;
}
@@ -1389,7 +1389,7 @@ WaitForSocketEvent(
} else if (infoPtr->readyEvents & events) {
break;
} else if (infoPtr->flags & SOCKET_ASYNC) {
- *errorCodePtr = EWOULDBLOCK;
+ *errorCodePtr = EAGAIN;
result = 0;
break;
}
@@ -1913,7 +1913,7 @@ TcpOutputProc(
if (error == WSAEWOULDBLOCK) {
infoPtr->readyEvents &= ~(FD_WRITE);
if (infoPtr->flags & SOCKET_ASYNC) {
- *errorCodePtr = EWOULDBLOCK;
+ *errorCodePtr = EAGAIN;
bytesWritten = -1;
break;
}