You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fu...@apache.org on 2014/07/23 23:15:06 UTC

svn commit: r1612945 - /httpd/httpd/trunk/server/util_pcre.c

Author: fuankg
Date: Wed Jul 23 21:15:06 2014
New Revision: 1612945

URL: http://svn.apache.org/r1612945
Log:
Re-introduce check for sufficient PCRE version.

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

Modified: httpd/httpd/trunk/server/util_pcre.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_pcre.c?rev=1612945&r1=1612944&r2=1612945&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_pcre.c (original)
+++ httpd/httpd/trunk/server/util_pcre.c Wed Jul 23 21:15:06 2014
@@ -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_rege
     return namecount;
 }
 
+#endif /* PCRE_DUPNAMES defined */
+
 /* End of pcreposix.c */