From a4728584ffc19bff3893a00061591f53bb60f5c5 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 24 Nov 2022 07:35:17 +0100 Subject: [PATCH] BUILD: stick-tables: fix build breakage in xxhash on older compilers Commit 36d156564 ("MINOR: peers: Support for peer shards") reintroduced a direct dependency on import/xxhash.h which was previously dropped by commit d5fc8fcb8 ("CLEANUP: Add haproxy/xxhash.h to avoid modifying import/xxhash.h"). This results in xxhash.h being included twice, which breaks the build on older compilers which do not like seeing XXH32_hash_t being defined twice. Let's just use include/haproxy/xxhash.h instead. No backport is needed. --- src/stick_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stick_table.c b/src/stick_table.c index 958618c9f..85c4a1bb6 100644 --- a/src/stick_table.c +++ b/src/stick_table.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include @@ -45,6 +44,7 @@ #include #include #include +#include /* structure used to return a table key built from a sample */