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