diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-14 19:28:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-14 19:28:58 +0000 |
commit | 192de56600f9b4dbd7532cf159cb7757c104a1e6 (patch) | |
tree | 89a82ef1bbedbadda5378beba81a372f7235d4f7 /src | |
parent | d13dd19906631e88165ad51073ad1054b2d16dfc (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')
-rw-r--r-- | src/socketengines/socketengine_poll.cpp | 5 |
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; |