From: Joe Orton Date: Wed, 3 Aug 2005 09:45:57 +0000 (+0000) Subject: * server/util_pcre.c (ap_regexec): Fix --with-pcre build with older X-Git-Tag: 2.1.7~5^2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7754d8254f9f75c9cdf7797890c88594df91e2fe;p=thirdparty%2Fapache%2Fhttpd.git * server/util_pcre.c (ap_regexec): Fix --with-pcre build with older versions of pcre. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@227189 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_pcre.c b/server/util_pcre.c index 97c1b900fc1..bd1073ce287 100644 --- a/server/util_pcre.c +++ b/server/util_pcre.c @@ -213,9 +213,15 @@ else case PCRE_ERROR_BADMAGIC: return AP_REG_INVARG; case PCRE_ERROR_UNKNOWN_NODE: return AP_REG_ASSERT; case PCRE_ERROR_NOMEMORY: return AP_REG_ESPACE; +#ifdef PCRE_ERROR_MATCHLIMIT case PCRE_ERROR_MATCHLIMIT: return AP_REG_ESPACE; +#endif +#ifdef PCRE_ERROR_BADUTF8 case PCRE_ERROR_BADUTF8: return AP_REG_INVARG; +#endif +#ifdef PCRE_ERROR_BADUTF8_OFFSET case PCRE_ERROR_BADUTF8_OFFSET: return AP_REG_INVARG; +#endif default: return AP_REG_ASSERT; } }