summaryrefslogtreecommitdiff
path: root/src/socketengines/socketengine_poll.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-14 19:28:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-14 19:28:58 +0000
commit192de56600f9b4dbd7532cf159cb7757c104a1e6 (patch)
tree89a82ef1bbedbadda5378beba81a372f7235d4f7 /src/socketengines/socketengine_poll.cpp
parentd13dd19906631e88165ad51073ad1054b2d16dfc (diff)
This is more accurate. #ifndef __FreeBSD__, #else, #endif
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10962 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengines/socketengine_poll.cpp')
-rw-r--r--src/socketengines/socketengine_poll.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/socketengines/socketengine_poll.cpp b/src/socketengines/socketengine_poll.cpp
index d32d31cc4..3c6961838 100644
--- a/src/socketengines/socketengine_poll.cpp
+++ b/src/socketengines/socketengine_poll.cpp
@@ -99,7 +99,7 @@ bool PollEngine::DelFd(EventHandler* eh, bool force)
int PollEngine::GetMaxFds()
{
-#ifdef LINUX
+#ifndef __FreeBSD__
if (MAX_DESCRIPTORS)
return MAX_DESCRIPTORS;
@@ -117,8 +117,7 @@ int PollEngine::GetMaxFds()
ServerInstance->Exit(EXIT_STATUS_SOCKETENGINE);
}
return 0;
-#endif
-#ifdef FREEBSD
+#else
if (!MAX_DESCRIPTORS)
{
int mib[2], maxfiles;