Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-05-27 16:18:54 +0400
committerIgor Sysoev <igor@sysoev.ru>2003-05-27 16:18:54 +0400
commit6253ca1b62c24bbac8c380d4ae64353b671ad7ef (patch)
treecccc0130b6fb065ff235750d23b817e890bd5e57 /src/http/ngx_http.h
parent187fcd82410e0f9022b0090a27b040eb1211c3f5 (diff)
nginx-0.0.1-2003-05-27-16:18:54 import
Diffstat (limited to 'src/http/ngx_http.h')
-rw-r--r--src/http/ngx_http.h6
1 files changed, 4 insertions, 2 deletions
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 <ngx_conf_file.h>
#include <ngx_http_request.h>
+#include <ngx_http_config.h>
+#include <ngx_http_core_module.h>
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)