From: Ruediger Pluem Date: Tue, 4 Feb 2014 19:39:18 +0000 (+0000) Subject: * Only use PCRE_DUPNAMES if it is present (only in more recent versions of PCRE) X-Git-Tag: 2.5.0-alpha~4531 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fea24799cfdfd9c380ad8d3140c1448663b57abf;p=apache * 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 --- 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;