Merge pull request #19 from yinqiang/master

Little slip
This commit is contained in:
云风
2013-06-22 08:35:22 -07:00

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);