From ff40e40c9e0d7de0d37ba0fdc6019575cfdaf72d Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 10:05:08 +0000 Subject: Made compile on freebsd git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2324 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengine.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/socketengine.h b/include/socketengine.h index 967c0967b..41cd459d8 100644 --- a/include/socketengine.h +++ b/include/socketengine.h @@ -19,6 +19,18 @@ #include #include +#include "inspircd_config.h" +#include "globals.h" +#include "inspircd.h" +#ifdef USE_EPOLL +#include +#define EP_DELAY 5 +#endif +#ifdef USE_KQUEUE +#include +#include +#include +#endif class SocketEngine { @@ -39,9 +51,9 @@ public: SocketEngine(); ~SocketEngine(); - bool AddFd(int fd, bool readable, bool writeable, char type); + bool AddFd(int fd, bool readable, char type); bool DelFd(int fd); - bool Wait(unsigned long millisecs, std::vector &fdlist); + bool Wait(std::vector &fdlist); std::string GetName(); }; -- cgit v1.2.3