# HG changeset patch # User Igor Sysoev # Date 1251726673 0 # Node ID 6fb94acd3a0951e8d772b5e9e64ae142f2e98aef # Parent 3233684beeeacb35c99065f225a3b12033432b7e fix building on FreeBSD without --with-file-aio diff --git a/src/http/ngx_http_copy_filter_module.c b/src/http/ngx_http_copy_filter_module.c --- a/src/http/ngx_http_copy_filter_module.c +++ b/src/http/ngx_http_copy_filter_module.c @@ -145,7 +145,7 @@ ngx_http_copy_filter(ngx_http_request_t 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;