summaryrefslogtreecommitdiff
path: root/src/Socket.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Socket.cc')
-rw-r--r--src/Socket.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Socket.cc b/src/Socket.cc
index 66dae18..e1778be 100644
--- a/src/Socket.cc
+++ b/src/Socket.cc
@@ -528,7 +528,11 @@ Balau::IO<Balau::Socket> Balau::Socket::accept() throw (GeneralException) {
} else {
Printer::elog(E_SOCKET, "Listener at %p got a new connection", this);
m_evtR->reset();
+#ifdef _MSC_VER
return IO<Socket>(new Socket(_open_osfhandle(s, 0)));
+#else
+ return IO<Socket>(new Socket(s));
+#endif
}
}
}