adapt libbacktrace to musl

Signed-off-by: xhe <xw897002528@gmail.com>
This commit is contained in:
xhe 2023-09-05 10:25:04 +08:00
parent e23aa01d51
commit 4e771b2da0

View File

@ -1,4 +1,8 @@
#include <limits.h>
#if defined(__linux__) && !defined(__GLIBC__) && !defined(__WORDSIZE)
// include __WORDSIZE headers for musl
# include <bits/reg.h>
#endif
#if __WORDSIZE == 64
# define BACKTRACE_ELF_SIZE 64
#else