[exim-dev] [Bug 1073] Exim fails to build with older PCRE ve…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nigel Metheringham
Date:  
À: exim-dev
Sujet: [exim-dev] [Bug 1073] Exim fails to build with older PCRE versions
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1073

Nigel Metheringham <nigel@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





--- Comment #2 from Nigel Metheringham <nigel@???>  2011-01-26 11:09:20 ---
commit aa097c4c00f62487128d74f65c521f9e877b184f
Author:     Nigel Metheringham <nigel@???>
AuthorDate: Wed Jan 26 11:04:32 2011 +0000
Commit:     Nigel Metheringham <nigel@???>
CommitDate: Wed Jan 26 11:04:32 2011 +0000


    Workround compile error with old PCRE versions


    Fixes bug #1073
---
 doc/doc-txt/ChangeLog |    7 +++++++
 src/src/exim.c        |    7 ++++++-
 2 files changed, 13 insertions(+), 1 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index b18bc05..96cec24 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -3,6 +3,13 @@ $Cambridge: exim/doc/doc-txt/ChangeLog,v 1.632 2010/06/12
15:21:25 jetmore Exp $
Change log file for Exim from version 4.21
-------------------------------------------

+Exim version 4.75
+-----------------
+
+NM/01 Workround for PCRE version dependancy in version reporting
+      Bugzilla 1073
+
+
 Exim version 4.74
 -----------------


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();


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email