summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);