diff options
author | Pixel <pixel@nobis-crew.org> | 2011-10-18 11:11:39 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-10-18 11:11:39 -0700 |
commit | 3a201d00ac6c65b19b270c4e2937b7ba5ffed824 (patch) | |
tree | 3c0f02857e23c1e995300309c172ebacd18fac2c | |
parent | e0add8d5cb4fdb408efda292f64e029aa7ebbad2 (diff) |
Why is Win32 so not Posix ... ?
-rw-r--r-- | src/Socket.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Socket.cc b/src/Socket.cc index f14a8d3..057c2ab 100644 --- a/src/Socket.cc +++ b/src/Socket.cc @@ -343,6 +343,10 @@ bool Balau::Socket::setLocal(const char * hostname, int port) { return bind(m_fd, (struct sockaddr *) &m_localAddr, sizeof(m_localAddr)) == 0; } +#if defined(_WIN32) && !defined(EISCONN) +#define EISCONN WSAEISCONN +#endif + bool Balau::Socket::connect(const char * hostname, int port) { Assert(!m_listening); Assert(!m_connected); |