]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: 51d: fix build issue with recent compilers
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Dec 2022 18:34:23 +0000 (19:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Dec 2022 18:36:13 +0000 (19:36 +0100)
commit24f5a24c18b013cc25f61a136ed9927ce1b0c696
tree0260d92f1c65927fdc9a0a8c1854ab70e8e9155d
parent5ac6b3b12504e86a5be478b28f219a758e042fd7
BUILD: 51d: fix build issue with recent compilers

With gcc-11.2 and binutils-2.37 I'm getting link errors due to multiply
defined symbols when enabling USE_51DEGREES_V4. This is caused by two
variables being present in hash.h instead of hash.c, hence they're
defined twice.

This patch just moves them to hash.c and turns their declaration to
extern.

No backport is needed since this was introduced in 2.8-dev.
addons/51degrees/dummy/v4hash/hash/hash.c
addons/51degrees/dummy/v4hash/hash/hash.h