diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c index 763b8f8d2..c2e10aef3 100644 --- a/src/event/ngx_event.c +++ b/src/event/ngx_event.c @@ -22,11 +22,15 @@ ngx_event_t *ngx_read_events, *ngx_write_events; #if !(USE_KQUEUE) +#if (HAVE_KQUEUE) #if 1 ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT; #else ngx_event_type_e ngx_event_type = NGX_KQUEUE_EVENT; #endif +#else +ngx_event_type_e ngx_event_type = NGX_SELECT_EVENT; +#endif ngx_event_actions_t ngx_event_actions;