summaryrefslogtreecommitdiff
path: root/src/configfile.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-11-22 00:43:13 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-11-22 02:50:26 -0500
commit7512d82ca49f1b579819c2974c61de4e3137c70b (patch)
tree955ad40637d6fb5577427beb15e9c8c82f43dfc7 /src/configfile.h
parent7db817c59a89375ece9c3ec3b4ef7e4302e64549 (diff)
downloadlighttpd-git-7512d82ca49f1b579819c2974c61de4e3137c70b.tar.gz
[core] pcre2 support (--with-pcre2)
x-ref: "lighttpd: depends on obsolete pcre3 library" https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000063
Diffstat (limited to 'src/configfile.h')
-rw-r--r--src/configfile.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/configfile.h b/src/configfile.h
index ae75e713..a181ee72 100644
--- a/src/configfile.h
+++ b/src/configfile.h
@@ -13,7 +13,9 @@
* for compare: comp cond string/regex
*/
-#ifdef HAVE_PCRE_H
+#ifdef HAVE_PCRE2_H
+struct pcre2_real_match_data_8; /* declaration */
+#elif defined(HAVE_PCRE_H)
struct pcre_extra; /* declaration */
#endif
@@ -33,10 +35,13 @@ struct data_config {
data_config *next;
buffer string;
-#ifdef HAVE_PCRE_H
+ #ifdef HAVE_PCRE2_H
+ void *code;
+ struct pcre2_real_match_data_8 *match_data;
+ #elif defined(HAVE_PCRE_H)
void *regex;
struct pcre_extra *regex_study;
-#endif
+ #endif
int capture_idx;
int ext;
buffer comp_tag;