From: Shawn O. Pearce Date: Wed, 7 Mar 2007 01:44:14 +0000 (-0500) Subject: Don't build external_grep if its not used X-Git-Tag: v1.5.1-rc1~82 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ff1f99453f1fe2fd9470f6ea268aed5a1839bd09;p=git.git Don't build external_grep if its not used Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/builtin-grep.c b/builtin-grep.c index 96b70227c..e4f06f2b3 100644 --- a/builtin-grep.c +++ b/builtin-grep.c @@ -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) {