MINOR: tools: do not attempt to use backtrace() on linux without glibc
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Sep 2024 07:46:10 +0000 (09:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Oct 2024 08:17:31 +0000 (10:17 +0200)
commit908baaa3992e08544bacfa999bd7136c4f034c5a
treeb4bd3b37533923d7050909caeffe0d1e6555cd74
parenta1b7920db0c6f0bc6b099ed4a0f32550726dd0c9
MINOR: tools: do not attempt to use backtrace() on linux without glibc

The function is provided by glibc. Nothing prevents us from using our
own outside of glibc there (tested on aarch64 with musl). We still do
not enable it by default as we don't yet know if all archs work well,
but it's sufficient to pass USE_BACKTRACE=1 when building with musl to
verify it's OK.

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