MINOR: pools: use mallinfo2() when available instead of mallinfo()
authorWilly Tarreau <w@1wt.eu>
Thu, 16 Sep 2021 07:18:21 +0000 (09:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 Sep 2021 07:20:16 +0000 (09:20 +0200)
commitc2afb860f297eb82039d821bd25bdd3cf66abe28
tree4da219d36ce5483259566a4912e076de743d8f69
parenta096155e0868bf92dc05b8840aeb555fcf7181b1
MINOR: pools: use mallinfo2() when available instead of mallinfo()

Ilya reported in issue #1391 a build warning on Fedora about mallinfo()
being deprecated in favor of mallinfo2() since glibc-2.33. Let's add
support for it. This should be backported where the following commit is
also backported: 157e39303 ("MINOR: pools: automatically disable
malloc_trim() with external allocators").
include/haproxy/compat.h
src/pool.c