aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 11:28:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 11:28:41 +0100
commit6ceac089b6a8fee5aef14307b0561e98202947c5 (patch)
treebf105ef7acee480dc41c498fa8b7f0ba77a7effb /src/libutil/regexp.c
parent61f993a096adee992be9b5333f6c0090440f00ed (diff)
downloadrspamd-6ceac089b6a8fee5aef14307b0561e98202947c5.tar.gz
rspamd-6ceac089b6a8fee5aef14307b0561e98202947c5.zip
Fix some portability issues.
Diffstat (limited to 'src/libutil/regexp.c')
-rw-r--r--src/libutil/regexp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c
index f713ca2f7..7ef3f178b 100644
--- a/src/libutil/regexp.c
+++ b/src/libutil/regexp.c
@@ -664,9 +664,12 @@ rspamd_regexp_library_init (void)
rc = pcre_config (PCRE_CONFIG_JIT, &jit);
if (rc == 0 && jit == 1) {
+#ifdef PCRE_CONFIG_JITTARGET
pcre_config (PCRE_CONFIG_JITTARGET, &str);
-
msg_info ("pcre is compiled with JIT for %s", str);
+#else
+ msg_info ("pcre is compiled with JIT for unknown target");
+#endif
can_jit = TRUE;
}