From 3a201d00ac6c65b19b270c4e2937b7ba5ffed824 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 18 Oct 2011 11:11:39 -0700 Subject: Why is Win32 so not Posix ... ? --- src/Socket.cc | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3