]> git.kaiwu.me - nginx.git/commitdiff
fix building --without-http-cache, broken in r2953
authorIgor Sysoev <igor@sysoev.ru>
Mon, 22 Jun 2009 09:10:50 +0000 (09:10 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 22 Jun 2009 09:10:50 +0000 (09:10 +0000)
src/http/ngx_http_upstream.c

index 16a027a8a7c324bdc5d28c19d08cd7084d67744e..add5b21d9cbff1a8a82c4d89f0f598e321cf818b 100644 (file)
@@ -318,10 +318,14 @@ static ngx_http_variable_t  ngx_http_upstream_vars[] = {
       ngx_http_upstream_response_length_variable, 0,
       NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
 
+#if (NGX_HTTP_CACHE)
+
     { ngx_string("upstream_cache_status"), NULL,
       ngx_http_upstream_cache_status, 0,
       NGX_HTTP_VAR_NOHASH|NGX_HTTP_VAR_NOCACHEABLE, 0 },
 
+#endif
+
     { ngx_null_string, NULL, NULL, 0, 0, 0 }
 };