diff options
author | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2000-03-23 04:34:54 +0000 |
---|---|---|
committer | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2000-03-23 04:34:54 +0000 |
commit | 943effe9e7bb242477b58dce629f6266933ca082 (patch) | |
tree | cfa16bc3166aa032d8997662829ce4f07d48c262 /src | |
parent | 3e373b0dc77365d9d02f526f1dd2468e21e066d5 (diff) | |
download | grep-943effe9e7bb242477b58dce629f6266933ca082.tar.gz |
search.c
change the printf when not supported
Diffstat (limited to 'src')
-rw-r--r-- | src/search.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index d2f778d6..4ea2421f 100644 --- a/src/search.c +++ b/src/search.c @@ -22,6 +22,7 @@ # include <config.h> #endif #include <sys/types.h> +#include <stdio.h> #include "system.h" #include "grep.h" #include "regex.h" @@ -438,7 +439,9 @@ static void Pcompile (char *pattern, size_t size) { #ifndef HAVE_LIBPCRE - fatal (_("PCRE not supported"), 0); + fprintf (stderr, _("PCRE not supported")); + fprintf (stderr, "ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre"); + exit (2); #else auto int e; const char *ep; @@ -481,7 +484,9 @@ static char * Pexecute (char *buf, size_t size, char **endp) { #ifndef HAVE_LIBPCRE - fatal (_("PCRE not supported"), 0); + fprintf (stderr, _("PCRE not supported")); + fprintf (stderr, "ftp://ftp.cus.cam.ac.uk/pub/software/programs/pcre"); + exit (2); #else auto int e, i; auto int flags = 0; |