]> git.kaiwu.me - nginx.git/commitdiff
fix building on FreeBSD without --with-file-aio
authorIgor Sysoev <igor@sysoev.ru>
Mon, 31 Aug 2009 13:51:13 +0000 (13:51 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 31 Aug 2009 13:51:13 +0000 (13:51 +0000)
src/http/ngx_http_copy_filter_module.c

index f3d0f11617aca596ffe857621ed84321a83748e9..4aefd8d7f0775875fdb75ec740ef0f9562a529fb 100644 (file)
@@ -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;