From 09293fabd9dcb92812641788509a1a766e9320f8 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 15 Jun 2021 11:26:36 +0200 Subject: Win fix --- src/lib/third_party/src/ahocorasick.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/third_party/src/ahocorasick.c b/src/lib/third_party/src/ahocorasick.c index bb695f037..745afa30e 100644 --- a/src/lib/third_party/src/ahocorasick.c +++ b/src/lib/third_party/src/ahocorasick.c @@ -746,7 +746,9 @@ static void node_release(AC_NODE_t * thiz, int free_pattern) } /* Nonzero if X is not aligned on a "long" boundary. */ +#undef UNALIGNED /* Windows defined it but differently from what Aho expects */ #define UNALIGNED(X) ((long)X & (__SIZEOF_LONG__ - 1)) + #define LBLOCKSIZE __SIZEOF_LONG__ #if __SIZEOF_LONG__ == 4 -- cgit v1.2.3