diff src/core/ngx_buf.h @ 5981:0f234ee664f7

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.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 11 Feb 2015 20:00:07 +0300
parents ccad84a174e0
children 1fdba317ee6d
line wrap: on
line diff
--- 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