aboutsummaryrefslogtreecommitdiff
path: root/src/lib/third_party
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-06-15 11:26:36 +0200
committerLuca Deri <deri@ntop.org>2021-06-15 11:26:36 +0200
commit09293fabd9dcb92812641788509a1a766e9320f8 (patch)
tree03aae02939810d1f468f2940d605b4f6133c5d20 /src/lib/third_party
parent43ccaef2f5767660f234429d7a0639c3d78cb7bc (diff)
Win fix
Diffstat (limited to 'src/lib/third_party')
-rw-r--r--src/lib/third_party/src/ahocorasick.c2
1 files changed, 2 insertions, 0 deletions
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