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
+#error PCRE_DUPNAMES does not exist in this PCRE implementation; too old.
+#endif
if ((cflags & AP_REG_ICASE) != 0)
options |= PCRE_CASELESS;