httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r227189 - /httpd/httpd/trunk/server/util_pcre.c
Date Wed, 03 Aug 2005 09:46:00 GMT
Author: jorton
Date: Wed Aug  3 02:45:57 2005
New Revision: 227189

URL: http://svn.apache.org/viewcvs?rev=227189&view=rev
Log:
* server/util_pcre.c (ap_regexec): Fix --with-pcre build with older
versions of pcre.

Modified:
    httpd/httpd/trunk/server/util_pcre.c

Modified: httpd/httpd/trunk/server/util_pcre.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/server/util_pcre.c?rev=227189&r1=227188&r2=227189&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_pcre.c (original)
+++ httpd/httpd/trunk/server/util_pcre.c Wed Aug  3 02:45:57 2005
@@ -213,9 +213,15 @@
     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;
     }
   }



Mime
View raw message