mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
fix some thing for kqueue
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user