From cf50f45c02ab89a4fd87bfe2fb1d6a871660772d Mon Sep 17 00:00:00 2001 From: fez Date: Fri, 1 Feb 2008 07:34:46 +0000 Subject: fixed getsockopt parameter 4, removed sys/select.h on windows platform git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8780 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengines/socketengine_select.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/socketengines') diff --git a/src/socketengines/socketengine_select.cpp b/src/socketengines/socketengine_select.cpp index b57a83ae8..b7427612e 100644 --- a/src/socketengines/socketengine_select.cpp +++ b/src/socketengines/socketengine_select.cpp @@ -12,7 +12,9 @@ */ #include "inspircd.h" +#ifndef WINDOWS #include +#endif // WINDOWS #include "socketengines/socketengine_select.h" @@ -132,7 +134,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); -- cgit v1.2.3