grep: fix NO_LIBPCRE1_JIT to fully disable JIT
[gitweb.git] / grep.c
diff --git a/grep.c b/grep.c
index b197ad960c87bef3d0b800254e95a0922c90c693..56a7ec46ef2d0c6d6e777641bd37cf51cdd48bce 100644 (file)
--- a/grep.c
+++ b/grep.c
@@ -380,7 +380,7 @@ static void compile_pcre1_regexp(struct grep_pat *p, const struct grep_opt *opt)
        if (!p->pcre1_regexp)
                compile_regexp_failed(p, error);
 
-       p->pcre1_extra_info = pcre_study(p->pcre1_regexp, PCRE_STUDY_JIT_COMPILE, &error);
+       p->pcre1_extra_info = pcre_study(p->pcre1_regexp, GIT_PCRE_STUDY_JIT_COMPILE, &error);
        if (!p->pcre1_extra_info && error)
                die("%s", error);