@matheusbsbs / matheus-bagliano / commits / ff1f99453f
Fork 0

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>

Shawn O. Pearce committed Mar 6, 2007 at 20:44 UTC ff1f99453f1fe2fd9470f6ea268aed5a1839bd09
1 file changed +2
builtin-grep.c
+2
@@ -150,6 +150,7 @@ static int grep_file(struct grep_opt *opt, const char *filename)
150 return i;
151 }
152
153 +#ifdef __unix__
154 static int exec_grep(int argc, const char **argv)
155 {
156 pid_t pid;
@@ -298,6 +299,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)
299 }
300 return hit;
301 }
302 +#endif
303
304 static int grep_cache(struct grep_opt *opt, const char **paths, int cached)
305 {