aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorSpühler Stefan <git@tuxli.ch>2020-05-12 14:23:42 +0200
committerSpühler Stefan <git@tuxli.ch>2020-05-12 14:33:06 +0200
commitc8f69801ec7ef53f3b4b2d8114934716f2cdf698 (patch)
treeb72d2b89c1a4c9d452234dba65097748b4cb14be /contrib
parentafaa9500bb5b70e7e8d940ada684fff6e94793bc (diff)
downloadrspamd-c8f69801ec7ef53f3b4b2d8114934716f2cdf698.tar.gz
rspamd-c8f69801ec7ef53f3b4b2d8114934716f2cdf698.zip
[Fix] Segmentation fault in contrib/lua-lpeg/lpvm.c on ppc64el
This disables a workaround only intended for aarch64 if the target architecture is powerpc. Issue: #3365
Diffstat (limited to 'contrib')
-rw-r--r--contrib/lua-lpeg/lptypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/lua-lpeg/lptypes.h b/contrib/lua-lpeg/lptypes.h
index 46aac07a9..e69a9ed6b 100644
--- a/contrib/lua-lpeg/lptypes.h
+++ b/contrib/lua-lpeg/lptypes.h
@@ -152,7 +152,7 @@ typedef struct Charset {
#define testchar(st,c) (((int)(st)[((c) >> 3)] & (1 << ((c) & 7))))
/* Special workaround for luajit */
-#if defined(WITH_LUAJIT) && !(defined(_X86_) || defined(__x86_64__) || defined(__i386__))
+#if defined(WITH_LUAJIT) && !(defined(_X86_) || defined(__x86_64__) || defined(__i386__) || defined(__powerpc__))
# define LPEG_LUD_WORKAROUND 1
void * lpeg_allocate_mem_low(size_t sz);
void lpeg_free_mem_low(void *p);