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
parent
2d88451b7a
commit
ff1f99453f
|
@ -150,6 +150,7 @@ static int grep_file(struct grep_opt *opt, const char *filename)
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __unix__
|
||||||
static int exec_grep(int argc, const char **argv)
|
static int exec_grep(int argc, const char **argv)
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
@ -298,6 +299,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
|
||||||
}
|
}
|
||||||
return hit;
|
return hit;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int grep_cache(struct grep_opt *opt, const char **paths, int cached)
|
static int grep_cache(struct grep_opt *opt, const char **paths, int cached)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue