Skip to contentSkip to conversation

Don't build external_grep if its not used

PATCH In review Shawn O. Pearce 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 3/9 Don't build external_grep if its not used

---
 builtin-grep.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
builtin-grep.c +2 -0
index 96b7022..e4f06f2 100644
@@ -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)
 {
Signature · 1 line
1.5.0.3.863.gf0989