changeset 3070:6fb94acd3a09

fix building on FreeBSD without --with-file-aio
author Igor Sysoev <igor@sysoev.ru>
date Mon, 31 Aug 2009 13:51:13 +0000
parents 3233684beeea
children ffc270f696ed
files src/http/ngx_http_copy_filter_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_copy_filter_module.c	Mon Aug 31 13:50:37 2009 +0000
+++ b/src/http/ngx_http_copy_filter_module.c	Mon Aug 31 13:51:13 2009 +0000
@@ -145,7 +145,7 @@
     ngx_log_debug3(NGX_LOG_DEBUG_HTTP, c->log, 0,
                    "http copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args);
 
-#if (NGX_HAVE_AIO_SENDFILE)
+#if (NGX_HAVE_FILE_AIO && NGX_HAVE_AIO_SENDFILE)
 
     if (c->busy_sendfile) {
         off_t                  offset;