]> granicus.if.org Git - apache/commitdiff
Re-introduce check for sufficient PCRE version.
authorGuenter Knauf <fuankg@apache.org>
Wed, 23 Jul 2014 21:15:06 +0000 (21:15 +0000)
committerGuenter Knauf <fuankg@apache.org>
Wed, 23 Jul 2014 21:15:06 +0000 (21:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1612945 13f79535-47bb-0310-9956-ffa450edef68

server/util_pcre.c

index 22eb33cf6639d38da433eea23df937bfd4a62bb9..3e4fbb9444306b911219e9950a18f901e27af1a5 100644 (file)
@@ -48,6 +48,11 @@ POSSIBILITY OF SUCH DAMAGE.
 #include "apr_tables.h"
 #include "pcre.h"
 
+/* PCRE_DUPNAMES is only present since version 6.7 of PCRE */
+#ifndef PCRE_DUPNAMES
+#error PCRE Version 6.7 or later required!
+#else
+
 #define APR_WANT_STRFUNC
 #include "apr_want.h"
 
@@ -308,4 +313,6 @@ AP_DECLARE(int) ap_regname(const ap_regex_t *preg,
     return namecount;
 }
 
+#endif /* PCRE_DUPNAMES defined */
+
 /* End of pcreposix.c */