diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-28 05:58:55 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-28 05:58:55 +0000 |
commit | 32651dd108ee7566f9d686a7a6fa5d5414fa4151 (patch) | |
tree | 202af62011829a983b553623a6796d01b7abb112 /src/common/compat.h | |
parent | 0702179d28f42d9901bd5d7a5251e8e47751853d (diff) | |
download | tor-32651dd108ee7566f9d686a7a6fa5d5414fa4151.tar.gz tor-32651dd108ee7566f9d686a7a6fa5d5414fa4151.zip |
connect() on win32 can do more things than we thought?
svn:r2999
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 6745cb8c49..a7ab4c9c7b 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -124,7 +124,7 @@ int tor_socketpair(int family, int type, int protocol, int fd[2]); #define ERRNO_IS_EINPROGRESS(e) ((e) == WSAEINPROGRESS) /** Return true if e is EINPROGRESS or the local equivalent as returned by * a call to connect(). */ -#define ERRNO_IS_CONN_EINPROGRESS(e) ((e) == WSAEINPROGRESS || (e)== WSAEINVAL) +#define ERRNO_IS_CONN_EINPROGRESS(e) ((e) == WSAEINPROGRESS || (e)== WSAEINVAL || (e) == WSAEWOULDBLOCK) /** Return true if e is EAGAIN or another error indicating that a call to * accept() has no pending connections to return. */ #define ERRNO_IS_ACCEPT_EAGAIN(e) ERRNO_IS_EAGAIN(e) |