summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-12 10:05:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-12 10:05:08 +0000
commitff40e40c9e0d7de0d37ba0fdc6019575cfdaf72d (patch)
tree2ec58d777bb49209c997269dfe04c0d8c4314a82 /include
parenta00a16b82837ec624906d8600839d58723b8436f (diff)
Made compile on freebsd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2324 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/socketengine.h16
1 files changed, 14 insertions, 2 deletions
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 <vector>
#include <string>
+#include "inspircd_config.h"
+#include "globals.h"
+#include "inspircd.h"
+#ifdef USE_EPOLL
+#include <sys/epoll.h>
+#define EP_DELAY 5
+#endif
+#ifdef USE_KQUEUE
+#include <sys/types.h>
+#include <sys/event.h>
+#include <sys/time.h>
+#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<int> &fdlist);
+ bool Wait(std::vector<int> &fdlist);
std::string GetName();
};