diff --git a/service-src/event.h b/service-src/event.h index af639efa..f307c439 100644 --- a/service-src/event.h +++ b/service-src/event.h @@ -23,11 +23,10 @@ #ifdef HAVE_EPOLL #include #elif HAVE_KQUEUE +#include #include #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);