diff options
author | Valentin Bartenev <vbart@nginx.com> | 2015-02-11 20:00:07 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2015-02-11 20:00:07 +0300 |
commit | 0a3d458805ff64c0778ad4c081ce9cc0dee4aa01 (patch) | |
tree | 75265be19b93bdcca66edf38285f1378c8d06b0d /src/core/ngx_buf.h | |
parent | 2b8d6ad805a0132844cfbc1cf1c6988dfe8c9973 (diff) | |
download | nginx-0a3d458805ff64c0778ad4c081ce9cc0dee4aa01.tar.gz nginx-0a3d458805ff64c0778ad4c081ce9cc0dee4aa01.zip |
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.
Diffstat (limited to 'src/core/ngx_buf.h')
-rw-r--r-- | src/core/ngx_buf.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |