mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user