diff -NPru cmd_grep.c.orig cmd_grep.c
--- cmd_grep.c.orig	Sun Apr 11 09:31:39 1999
+++ cmd_grep.c	Sat Jan 22 23:47:32 2000
@@ -6,6 +6,8 @@
  * The "grep" built-in command.
  */
 
+#ifdef HAVE_GREP
+
 #include <ctype.h>
 
 #include "sash.h"
@@ -187,5 +189,7 @@
 		string++;
 	}
 }
+
+#endif /* HAVE_GREP */
 
 /* END CODE */
