From 4e771b2da071eb7434402f440c9bf105cbea1aec Mon Sep 17 00:00:00 2001 From: xhe Date: Tue, 5 Sep 2023 10:25:04 +0800 Subject: [PATCH] adapt libbacktrace to musl Signed-off-by: xhe --- public/libbacktrace/config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/libbacktrace/config.h b/public/libbacktrace/config.h index aa3259d1..87e38a95 100644 --- a/public/libbacktrace/config.h +++ b/public/libbacktrace/config.h @@ -1,4 +1,8 @@ #include +#if defined(__linux__) && !defined(__GLIBC__) && !defined(__WORDSIZE) +// include __WORDSIZE headers for musl +# include +#endif #if __WORDSIZE == 64 # define BACKTRACE_ELF_SIZE 64 #else