Skip to content

Commit

Permalink
Don't build external_grep if its not used
Browse files Browse the repository at this point in the history
Signed-off-by: Shawn O. Pearce <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
spearce authored and Junio C Hamano committed Mar 7, 2007
1 parent 2d88451 commit ff1f994
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions builtin-grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit ff1f994

Please sign in to comment.