MINOR: compat: automatically include malloc.h on glibc
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Nov 2020 14:50:40 +0000 (15:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Nov 2020 18:27:08 +0000 (19:27 +0100)
commit1d3c7003d91a2c3b48f0f1fee3eb361f4121057b
tree482fe6cc65c271935294f4d243f6d00149639cb0
parent32186472cb7faa09bd00d9166caea21ffe9760b2
MINOR: compat: automatically include malloc.h on glibc

This is in order to access malloc_trim() which is convenient after
clearing huge maps to reclaim memory. When this is detected, we also
define HA_HAVE_MALLOC_TRIM.
include/haproxy/compat.h