diff options
Diffstat (limited to 'src/event/ngx_event_proxy.c')
-rw-r--r-- | src/event/ngx_event_proxy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/event/ngx_event_proxy.c b/src/event/ngx_event_proxy.c index 2bae88947..ce22c6501 100644 --- a/src/event/ngx_event_proxy.c +++ b/src/event/ngx_event_proxy.c @@ -1,4 +1,7 @@ +#include <ngx_config.h> +#include <ngx_core.h> +#include <ngx_event.h> #include <ngx_event_proxy.h> @@ -46,7 +49,7 @@ ngx_log_debug(p->log, "read upstream"); #if (HAVE_KQUEUE) /* kqueue notifies about the end of file or a pending error */ - if (ngx_event_type == NGX_HAVE_KQUEUE_EVENT) { + if (ngx_event_flags == NGX_HAVE_KQUEUE_EVENT) { if (p->upstream->read->error) { ngx_log_error(NGX_LOG_ERR, p->log, |