summaryrefslogtreecommitdiff
path: root/src/SocketCore.cc
diff options
context:
space:
mode:
authorRoss Smith II <aria2spam@smithii.com>2008-11-22 20:28:50 +0000
committerRoss Smith II <aria2spam@smithii.com>2008-11-22 20:28:50 +0000
commit67d5d6d55efa708889dc41792bbfeb7983166790 (patch)
treea27c58b96bd9d349f12c23e35611e324a326c09e /src/SocketCore.cc
parent5faa91e24c7af82d1643f862295c413528ee8776 (diff)
Applied aria2-1.0.0-mingw-r5.patch
Diffstat (limited to 'src/SocketCore.cc')
-rw-r--r--src/SocketCore.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc
index dcf1ad3b..fbd20bb2 100644
--- a/src/SocketCore.cc
+++ b/src/SocketCore.cc
@@ -69,7 +69,7 @@
#endif // __MINGW32__
#ifdef __MINGW32__
-# define CLOSE(X) ::closesocket(sockfd)
+# define CLOSE(X) ::closesocket(X)
#else
# define CLOSE(X) while(close(X) == -1 && errno == EINTR)
#endif // __MINGW32__
@@ -399,7 +399,7 @@ bool SocketCore::isWritable(time_t timeout)
// time out
return false;
} else {
- if(SOCKET_ERRNO == EINPROGRESS || SOCKET_ERRNO == EINTR) {
+ if(SOCKET_ERRNO == A2_EINPROGRESS || SOCKET_ERRNO == EINTR) {
return false;
} else {
throw DlRetryEx(StringFormat(EX_SOCKET_CHECK_WRITABLE, errorMsg()).str());
@@ -452,7 +452,7 @@ bool SocketCore::isReadable(time_t timeout)
// time out
return false;
} else {
- if(SOCKET_ERRNO == EINPROGRESS || SOCKET_ERRNO == EINTR) {
+ if(SOCKET_ERRNO == A2_EINPROGRESS || SOCKET_ERRNO == EINTR) {
return false;
} else {
throw DlRetryEx(StringFormat(EX_SOCKET_CHECK_READABLE, errorMsg()).str());