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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8bfa364071a016161afe310bb4ee813468b7064;p=thirdparty%2Fapache%2Fhttpd.git * 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 4d2adef25b6..c2039b13c50 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;