aboutsummaryrefslogtreecommitdiffstats
path: root/src/socketengine_select.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-02-10 23:19:08 +0000
committerGravatar brain2008-02-10 23:19:08 +0000
commitdeb164cad9e9d800271b928613f24839ae261032 (patch)
tree493990014c66aeab2e59838c46445728a5b2ed33 /src/socketengine_select.cpp
parentRewrite nick targeted bans to user@host or IP bans where necessary. I don't k... (diff)
Commit stuff from fez that he couldnt get committed - fixes to make socketengine-select work in windows (should be more stable than iocp as the api is known to us unix devs)
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8888 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine_select.cpp')
-rw-r--r--src/socketengine_select.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp
index 5c5a70db8..e876fafcf 100644
--- a/src/socketengine_select.cpp
+++ b/src/socketengine_select.cpp
@@ -12,7 +12,9 @@
*/
#include "inspircd.h"
+#ifndef WIN32
#include <sys/select.h>
+#endif
#include "socketengine_select.h"
@@ -131,7 +133,7 @@ int SelectEngine::DispatchEvents()
{
if (ev[i])
{
- if (getsockopt(ev[i]->GetFd(), SOL_SOCKET, SO_ERROR, &errcode, &codesize) < 0)
+ if (getsockopt(ev[i]->GetFd(), SOL_SOCKET, SO_ERROR, (char*)&errcode, &codesize) < 0)
errcode = errno;
ev[i]->HandleEvent(EVENT_ERROR, errcode);