]> granicus.if.org Git - apache/commitdiff
* Only use PCRE_DUPNAMES if it is present (only in more recent versions of PCRE)
authorRuediger Pluem <rpluem@apache.org>
Tue, 4 Feb 2014 19:39:18 +0000 (19:39 +0000)
committerRuediger Pluem <rpluem@apache.org>
Tue, 4 Feb 2014 19:39:18 +0000 (19:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564439 13f79535-47bb-0310-9956-ffa450edef68

server/util_pcre.c

index 4d2adef25b67d20f430a568808d2d5eca5ccbd5c..c2039b13c50b08f34012499016987bd0c7c694d1 100644 (file)
@@ -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;