summaryrefslogtreecommitdiff
path: root/src/socketengines
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-02 18:05:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-02 18:05:25 +0000
commit1290b11508cb44d74e248860f3bfddf32efd878b (patch)
tree2a8d1b8d2055648a0c18381d5f7ac7e32533ae05 /src/socketengines
parent46242bf71b58dc4c563efdc1bb3a0589b0a6fdfc (diff)
make sure we include the right headers and fix a warning in cmode_b
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9269 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengines')
-rw-r--r--src/socketengines/socketengine_kqueue.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/socketengines/socketengine_kqueue.cpp b/src/socketengines/socketengine_kqueue.cpp
index 0fb14c29f..5fabb5b8d 100644
--- a/src/socketengines/socketengine_kqueue.cpp
+++ b/src/socketengines/socketengine_kqueue.cpp
@@ -17,7 +17,7 @@
#include <sys/event.h>
#include <sys/time.h>
#include "socketengines/socketengine_kqueue.h"
-#include <ulimit.h>
+#include <sys/sysctl.h>
KQueueEngine::KQueueEngine(InspIRCd* Instance) : SocketEngine(Instance)
{
@@ -130,9 +130,8 @@ int KQueueEngine::GetMaxFds()
mib[1] = KERN_MAXFILES;
len = sizeof(maxfiles);
sysctl(mib, 2, &maxfiles, &len, NULL, 0);
-
MAX_DESCRIPTORS = maxfiles;
- return max;
+ return maxfiles;
}
return MAX_DESCRIPTORS;
}