Code

Don't build external_grep if its not used
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Mar 2007 01:44:14 +0000 (20:44 -0500)
committerJunio C Hamano <junkio@cox.net>
Wed, 7 Mar 2007 18:42:07 +0000 (10:42 -0800)
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-grep.c

index 96b70227cf073517c309dbc8b042085f1040dab5..e4f06f2b3ab23426edc4cf3e547d3c29efa6a86a 100644 (file)
@@ -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)
 {