fix some thing for kqueue

This commit is contained in:
yinqiang
2013-06-22 23:27:48 +08:00
parent 65d27f4179
commit 4abbad7acc

View File

@@ -23,11 +23,10 @@
#ifdef HAVE_EPOLL
#include <sys/epoll.h>
#elif HAVE_KQUEUE
#include <time.h>
#include <sys/event.h>
#endif
#ifdef HAVE_EPOLL
#define MAX_EVENT 32
struct event {
@@ -36,6 +35,8 @@ struct event {
bool write;
};
#ifdef HAVE_EPOLL
static int
event_init(int max) {
return epoll_create(max);