summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-18 11:11:39 -0700
committerPixel <pixel@nobis-crew.org>2011-10-18 11:11:39 -0700
commit3a201d00ac6c65b19b270c4e2937b7ba5ffed824 (patch)
tree3c0f02857e23c1e995300309c172ebacd18fac2c
parente0add8d5cb4fdb408efda292f64e029aa7ebbad2 (diff)
Why is Win32 so not Posix ... ?
-rw-r--r--src/Socket.cc4
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);