1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 22:06:37 +02:00

Fixed windows build

This commit is contained in:
Adam
2011-08-27 21:11:01 -04:00
parent 49b81a5e78
commit 3f3657a9eb
@@ -27,11 +27,15 @@ class SocketEnginePoll : public SocketEngineBase
{
SocketCount = 0;
#ifndef _WIN32
rlimit fd_limit;
if (getrlimit(RLIMIT_NOFILE, &fd_limit) == -1)
throw CoreException(Anope::LastError());
max = fd_limit.rlim_cur;
#else
max = 1024;
#endif
events = new pollfd[max];
}