# HG changeset patch # User Maxim Dounin # Date 1316516667 -14400 # Node ID 50ec0697da32f64d126c9325e200dc5fda60f926 # Parent d1b72979e4f1e3f0f83fbaa288d8dc544fe185ba Catch up with nginx 1.1.4 API changes. diff --git a/ngx_http_gunzip_filter_module.c b/ngx_http_gunzip_filter_module.c --- a/ngx_http_gunzip_filter_module.c +++ b/ngx_http_gunzip_filter_module.c @@ -218,8 +218,13 @@ ngx_http_gunzip_body_filter(ngx_http_req cl = NULL; +#if (nginx_version >= 1001004) + ngx_chain_update_chains(r->pool, &ctx->free, &ctx->busy, &cl, + (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); +#else ngx_chain_update_chains(&ctx->free, &ctx->busy, &cl, (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); +#endif ctx->nomem = 0; } @@ -277,8 +282,13 @@ ngx_http_gunzip_body_filter(ngx_http_req goto failed; } +#if (nginx_version >= 1001004) + ngx_chain_update_chains(r->pool, &ctx->free, &ctx->busy, &ctx->out, + (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); +#else ngx_chain_update_chains(&ctx->free, &ctx->busy, &ctx->out, (ngx_buf_tag_t) &ngx_http_gunzip_filter_module); +#endif ctx->last_out = &ctx->out; ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,