BUILD: pools: fix backport of no-memory-trimming on non-linux OS
authorWilly Tarreau <w@1wt.eu>
Tue, 8 Mar 2022 14:10:05 +0000 (15:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 Mar 2022 14:10:05 +0000 (15:10 +0100)
commita11c3b83e3a3689700b12551650d8f5a681db5fb
treede681163583f9ab52f8e64da48b029d0e6ae0d36
parent39527d7f6bcbbf82e78be7126767b5d8880d45c1
BUILD: pools: fix backport of no-memory-trimming on non-linux OS

Commit 4bcff9ba4 in 2.5 ("MINOR: pools: add a new global option
"no-memory-trimming"") was missing some extra ifdefs for the cases
where the allocator doesn't have malloc_trim() and fails to build
on windows.

This must be backported to 2.4.
src/pool.c