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>
This commit is contained in:
Shawn O. Pearce 2007-03-06 20:44:14 -05:00 committed by Junio C Hamano
parent 2d88451b7a
commit ff1f99453f

View file

@ -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)
}
return hit;
}
#endif
static int grep_cache(struct grep_opt *opt, const char **paths, int cached)
{