summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regexp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/regexp.c b/regexp.c
index bef3590..db820ef 100644
--- a/regexp.c
+++ b/regexp.c
@@ -7,6 +7,11 @@
#include "regexp.h"
+// for PCRE without JIT support
+#ifndef PCRE_STUDY_JIT_COMPILE
+#define PCRE_STUDY_JIT_COMPILE 0
+#endif
+
/* Global instance */
cEpgfixerList<cRegexp, cEvent> EpgfixerRegexps;
@@ -41,7 +46,7 @@ void cRegexp::Compile()
enabled = false;
}
else {
- sd = pcre_study(re, 0, (const char **)&error);
+ sd = pcre_study(re, PCRE_STUDY_JIT_COMPILE, (const char **)&error);
if (error)
error("PCRE study error: %s", error);
}