From 0a3d458805ff64c0778ad4c081ce9cc0dee4aa01 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Wed, 11 Feb 2015 20:00:07 +0300 Subject: Unbreak building on FreeBSD without file AIO. It appeared that the NGX_HAVE_AIO_SENDFILE macro was defined regardless of the "--with-file-aio" configure option and the NGX_HAVE_FILE_AIO macro. Now they are related. Additionally, fixed one macro. --- src/core/ngx_buf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/ngx_buf.h b/src/core/ngx_buf.h index 219894ffc..9ee1c588c 100644 --- a/src/core/ngx_buf.h +++ b/src/core/ngx_buf.h @@ -94,7 +94,7 @@ struct ngx_output_chain_ctx_s { unsigned aio:1; ngx_output_chain_aio_pt aio_handler; -#if (NGX_HAVE_FILE_AIO) +#if (NGX_HAVE_AIO_SENDFILE) ssize_t (*aio_preload)(ngx_buf_t *file); #endif #endif -- cgit