git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 7, 2007, 01:44 UTC
Message-ID
<20070307014414.GD26482@spearce.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 builtin-grep.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
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
Message 1 of 1 in “Don't build external_grep if its not used”
  1. 3/9 Don't build external_grep if its not usedShawn O. Pearce, Mar 7, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.