BUILD: tools: only include execinfo.h for the real backtrace() function
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Sep 2024 07:37:16 +0000 (09:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Oct 2024 08:17:31 +0000 (10:17 +0200)
commita1b7920db0c6f0bc6b099ed4a0f32550726dd0c9
treef748e10993c6caf74cfe581ce66bbadad85a1485
parentd53d6fb55f02da839c118c40be9e6bfd17471707
BUILD: tools: only include execinfo.h for the real backtrace() function

No need to include this possibly non-existing file when using our own
backtrace() implementation, it's only needed for the libc-provided one.
Because of this it's currently not possible to build musl with backtrace
enabled.

(cherry picked from commit 1c4776dbc3e7d0a73bd62bae78d509c3c54045d6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/tools.h