diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-22 15:47:07 -0800 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-12-22 15:47:07 -0800 |
commit | a12275a467c72ff429af64e477ba1e3bad3d6d79 (patch) | |
tree | 6d5f146a0a382426cb0db67909af77271f4022ba /src/Socket.cc | |
parent | b199455adeb01250743ba36e13d0905980326335 (diff) | |
parent | df8dd99434e5918a7506d888877d070356111d43 (diff) |
Merge branch 'master' of ssh+git://git.grumpycoder.net/pub/repo.git/Balau
Diffstat (limited to 'src/Socket.cc')
-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 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 } } } |