aboutsummaryrefslogtreecommitdiff
path: root/builtin-grep.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-03-06 20:44:14 -0500
committerJunio C Hamano <junkio@cox.net>2007-03-07 10:42:07 -0800
commitff1f99453f1fe2fd9470f6ea268aed5a1839bd09 (patch)
treea558ddc47a3714374e074041093440ec161da79e /builtin-grep.c
parent2d88451b7a8cdd8bc233c7910c775bbb0ac76457 (diff)
downloadgit-ff1f99453f1fe2fd9470f6ea268aed5a1839bd09.tar.gz
git-ff1f99453f1fe2fd9470f6ea268aed5a1839bd09.tar.xz
Don't build external_grep if its not used
Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-grep.c')
-rw-r--r--builtin-grep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-grep.c b/builtin-grep.c
index 96b70227c..e4f06f2b3 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)
{