From 0992af3130582c82bd4468dfbca62415a72fe743 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 30 May 2019 16:29:23 +0100 Subject: [PATCH] [Minor] Disable PCRE jit on OSX completely --- config.h.in | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5