Mercurial > hg > xemacs-beta
diff lib-src/movemail.c @ 331:c9ae480b1fff r21-0-63
Import from CVS: tag r21-0-63
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:49:07 +0200 |
parents | 19dcec799385 |
children | cc15677e0335 |
line wrap: on
line diff
--- a/lib-src/movemail.c Mon Aug 13 10:48:42 2007 +0200 +++ b/lib-src/movemail.c Mon Aug 13 10:49:07 2007 +0200 @@ -68,14 +68,14 @@ #include "getopt.h" #ifdef MAIL_USE_POP #include "pop.h" -#include <regex.h> +#include "../src/regex.h" #endif extern char *optarg; extern int optind, opterr; #ifndef HAVE_STRERROR -static char * strerror (int errnum); +char * strerror (int errnum); #endif /* HAVE_STRERROR */ #ifdef MSDOS @@ -847,7 +847,7 @@ /* Turn a name, which is an ed-style (but Emacs syntax) regular expression, into a real regular expression by compiling it. */ static struct re_pattern_buffer* -compile_regex (char* regexp_pattern) +compile_regex (char* pattern) { char *err; struct re_pattern_buffer *patbuf=0; @@ -858,7 +858,7 @@ patbuf->buffer = NULL; patbuf->allocated = 0; - err = (char*) re_compile_pattern (regexp_pattern, strlen (regexp_pattern), patbuf); + err = (char*) re_compile_pattern (pattern, strlen (pattern), patbuf); if (err != NULL) { error ("%s while compiling pattern", err, NULL); @@ -873,7 +873,7 @@ #endif /* MAIL_USE_POP */ #ifndef HAVE_STRERROR -static char * +char * strerror (int errnum) { extern char *sys_errlist[];