{"thread":{"id":"7133","subject":"[PATCH 3/9] Don't build external_grep if its not used","startedAt":"2007-03-07T01:44:14Z","lastAt":"2007-03-07T01:44:14Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":9},"messages":[{"id":"36523","messageId":"20070307014414.GD26482@spearce.org","threadId":"7133","inReplyTo":null,"subject":"[PATCH 3/9] Don't build external_grep if its not used","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-03-07T01:44:14Z","receivedAt":"2007-03-07T01:44:14Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Signed-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n builtin-grep.c |    2 ++\n 1 files changed, 2 insertions(+), 0 deletions(-)\n\ndiff --git a/builtin-grep.c b/builtin-grep.c\nindex 96b7022..e4f06f2 100644\n--- a/builtin-grep.c\n+++ b/builtin-grep.c\n@@ -150,6 +150,7 @@ static int grep_file(struct grep_opt *opt, const char *filename)\n \treturn i;\n }\n \n+#ifdef __unix__\n static int exec_grep(int argc, const char **argv)\n {\n \tpid_t pid;\n@@ -298,6 +299,7 @@ static int external_grep(struct grep_opt *opt, const char **paths, int cached)\n \t}\n \treturn hit;\n }\n+#endif\n \n static int grep_cache(struct grep_opt *opt, const char **paths, int cached)\n {\n-- \n1.5.0.3.863.gf0989\n"}]}