From 6253ca1b62c24bbac8c380d4ae64353b671ad7ef Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 27 May 2003 12:18:54 +0000 Subject: nginx-0.0.1-2003-05-27-16:18:54 import --- src/http/ngx_http.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/http/ngx_http.h') diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index 2a695c776..81a859d40 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h @@ -13,6 +13,8 @@ #include #include +#include +#include typedef struct { @@ -30,12 +32,12 @@ typedef int (*ngx_http_output_body_filter_p) (ngx_http_request_t *r, ngx_chain_t *chain); -#define ngx_http_get_module_ctx(r, module) r->ctx[module.index] +#define ngx_http_get_module_ctx(r, module) r->ctx[module.ctx_index] #define ngx_http_create_ctx(r, cx, module, size, error) \ do { \ ngx_test_null(cx, ngx_pcalloc(r->pool, size), error); \ - r->ctx[module.index] = cx; \ + r->ctx[module.ctx_index] = cx; \ } while (0) -- cgit v1.2.3