Started working kqueue() backend for OSX and BSD.

This commit is contained in:
Jan Vidar Krey
2010-01-26 23:30:32 +01:00
parent f54e8dbbba
commit d7a1a52c1a
3 changed files with 184 additions and 1 deletions

View File

@@ -104,8 +104,19 @@
#ifdef __linux__
#define USE_EPOLL
#define HAVE_BACKEND
#include <sys/epoll.h>
#else
#endif
/*
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
#define USE_KQUEUE
#define HAVE_BACKEND
#include <sys/event.h>
#endif
*/
#ifndef HAVE_BACKEND
#define USE_SELECT
#include <sys/select.h>
#endif