From: Igor Sysoev Date: Mon, 31 Aug 2009 13:51:13 +0000 (+0000) Subject: fix building on FreeBSD without --with-file-aio X-Git-Tag: release-0.8.13~2 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=06bb9d294a77f5448fb7a4a6da0d9349c636ef9f;p=nginx.git 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 index f3d0f1161..4aefd8d7f 100644 --- 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 *r, ngx_chain_t *in) 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;