From fea24799cfdfd9c380ad8d3140c1448663b57abf Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Tue, 4 Feb 2014 19:39:18 +0000 Subject: [PATCH] * Only use PCRE_DUPNAMES if it is present (only in more recent versions of PCRE) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564439 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_pcre.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/util_pcre.c b/server/util_pcre.c index 4d2adef25b..c2039b13c5 100644 --- a/server/util_pcre.c +++ b/server/util_pcre.c @@ -125,7 +125,12 @@ AP_DECLARE(int) ap_regcomp(ap_regex_t * preg, const char *pattern, int cflags) const char *errorptr; int erroffset; int errcode = 0; + /* PCRE_DUPNAMES is only present in more recent versions of PCRE */ +#ifdef PCRE_DUPNAMES int options = PCRE_DUPNAMES; +#else + int options = 0; +#endif if ((cflags & AP_REG_ICASE) != 0) options |= PCRE_CASELESS; -- 2.50.1