From 06bb9d294a77f5448fb7a4a6da0d9349c636ef9f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 31 Aug 2009 13:51:13 +0000 Subject: [PATCH] fix building on FreeBSD without --with-file-aio --- src/http/ngx_http_copy_filter_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;