From 192de56600f9b4dbd7532cf159cb7757c104a1e6 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Jan 2009 19:28:58 +0000 Subject: This is more accurate. #ifndef __FreeBSD__, #else, #endif git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10962 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengines/socketengine_poll.cpp | 5 ++--- 1 file 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; -- cgit v1.2.3