threads / patch / 7133

patch, 9 partsDon't build external_grep if its not used

Subject: [PATCH 3/9] Don't build external_grep if its not used

## tl;dr

One message between Mar 7, 2007 and Mar 7, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Shawn O. Pearce· Mar 7, 2007, 01:44 UTC · lore
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 builtin-grep.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Show changes to builtin-grep.c +2 −0
diff --git a/builtin-grep.c b/builtin-grep.c
index 96b7022..e4f06f2 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)
 {
-- 
1.5.0.3.863.gf0989

← back to recent threads