summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;