aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-30 16:29:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-30 16:29:23 +0100
commit0992af3130582c82bd4468dfbca62415a72fe743 (patch)
tree0add839b4ee337f5cc16e7586debc86aabbce7ba /config.h.in
parenta6bae9237be62e785a4c4e207d3f5038fb70ca6e (diff)
downloadrspamd-0992af3130582c82bd4468dfbca62415a72fe743.tar.gz
rspamd-0992af3130582c82bd4468dfbca62415a72fe743.zip
[Minor] Disable PCRE jit on OSX completely
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index c4678b15e..0693cd55c 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1,6 +1,7 @@
#ifndef RSPAMD_CONFIG_H_IN
#define RSPAMD_CONFIG_H_IN
+
#cmakedefine BUILD_STATIC 1
#cmakedefine CURL_FOUND 1
#cmakedefine DEBUG_MODE 1
@@ -66,8 +67,13 @@
#cmakedefine HAVE_OPENSSL 1
#cmakedefine HAVE_O_DIRECT 1
#cmakedefine HAVE_PATH_MAX 1
+
+/* OSX has broken JIT support in PCRE, disable it */
+#ifndef __APPLE__
#cmakedefine HAVE_PCRE_JIT 1
#cmakedefine HAVE_PCRE_JIT_FAST 1
+#endif
+
#cmakedefine HAVE_PIDFILE 1
#cmakedefine HAVE_PIDFILE_FILENO 1
#cmakedefine HAVE_POLL_H 1