[Groonga-commit] groonga/groonga at 26184b3 [master] groonga-httpd: use pcre related code when pcre library is enabled

Back to archive index

Kentaro Hayashi null+****@clear*****
Thu Sep 29 00:53:27 JST 2016


Kentaro Hayashi	2016-09-29 00:53:27 +0900 (Thu, 29 Sep 2016)

  New Revision: 26184b3a2ac0709d4a4f5f896fa54507bb660fa8
  https://github.com/groonga/groonga/commit/26184b3a2ac0709d4a4f5f896fa54507bb660fa8

  Message:
    groonga-httpd: use pcre related code when pcre library is enabled
    
    regex_locations is a optional member variable of
    ngx_http_core_loc_conf_t when pcre library is enabled.

  Modified files:
    src/httpd/nginx-module/ngx_http_groonga_module.c

  Modified: src/httpd/nginx-module/ngx_http_groonga_module.c (+2 -0)
===================================================================
--- src/httpd/nginx-module/ngx_http_groonga_module.c    2016-09-29 00:47:23 +0900 (20a739e)
+++ src/httpd/nginx-module/ngx_http_groonga_module.c    2016-09-29 00:53:27 +0900 (ceee965)
@@ -1330,6 +1330,7 @@ ngx_http_groonga_each_loc_conf(ngx_http_conf_ctx_t *http_conf,
                                            callback,
                                            user_data);
 
+#if NGX_PCRE
     if (location_conf->regex_locations) {
       ngx_uint_t j;
       for (j = 0; location_conf->regex_locations[j]; j++) {
@@ -1342,6 +1343,7 @@ ngx_http_groonga_each_loc_conf(ngx_http_conf_ctx_t *http_conf,
         }
       }
     }
+#endif
   }
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index