diff options
author | fez <fez@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-01 07:34:46 +0000 |
---|---|---|
committer | fez <fez@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-01 07:34:46 +0000 |
commit | cf50f45c02ab89a4fd87bfe2fb1d6a871660772d (patch) | |
tree | d2cc3b280921d34f5bac3589344b9eb34cc2e080 /src/socketengines/socketengine_select.cpp | |
parent | e13982955715d9b68554dc0920e7cd74cd3d4367 (diff) |
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
Diffstat (limited to 'src/socketengines/socketengine_select.cpp')
-rw-r--r-- | src/socketengines/socketengine_select.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sys/select.h> +#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); |