From: Nigel Metheringham Date: Wed, 26 Jan 2011 11:04:32 +0000 (+0000) Subject: Workround compile error with old PCRE versions X-Git-Url: http://git.exim.org/exim.git/commitdiff_plain/aa097c4c00f62487128d74f65c521f9e877b184f Workround compile error with old PCRE versions Fixes bug #1073 --- diff --git a/src/src/exim.c b/src/src/exim.c index e236975..b3035ca 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -931,8 +931,13 @@ DEBUG(D_any) do { " Runtime: %s\n", PCRE_MAJOR, PCRE_MINOR, /* PRE_PRERELEASE is either defined and empty or a string. - * This should work: */ + * unless its an ancient version of PCRE in which case it + * is not defined */ +#ifdef PCRE_PRERELEASE PCRE_PRERELEASE "", +#else + "", +#endif pcre_version()); init_lookup_list();