Browse Source

Don't build external_grep if its not used

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Shawn O. Pearce 18 years ago committed by Junio C Hamano
parent
commit
ff1f99453f
  1. 2
      builtin-grep.c

2
builtin-grep.c

@ -150,6 +150,7 @@ static int grep_file(struct grep_opt *opt, const char *filename) @@ -150,6 +150,7 @@ static int grep_file(struct grep_opt *opt, const char *filename)
return i;
}

#ifdef __unix__
static int exec_grep(int argc, const char **argv)
{
pid_t pid;
@ -298,6 +299,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached) @@ -298,6 +299,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
}
return hit;
}
#endif

static int grep_cache(struct grep_opt *opt, const char **paths, int cached)
{

Loading…
Cancel
Save