From 4abbad7acc8a26369335d5c4fecf3a38b1600496 Mon Sep 17 00:00:00 2001 From: yinqiang Date: Sat, 22 Jun 2013 23:27:48 +0800 Subject: [PATCH] fix some thing for kqueue --- service-src/event.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);