2019-01-20 15:53:45 +00:00
|
|
|
#include <limits.h>
|
2023-09-05 02:25:04 +00:00
|
|
|
#if defined(__linux__) && !defined(__GLIBC__) && !defined(__WORDSIZE)
|
|
|
|
// include __WORDSIZE headers for musl
|
|
|
|
# include <bits/reg.h>
|
|
|
|
#endif
|
2019-01-20 15:53:45 +00:00
|
|
|
#if __WORDSIZE == 64
|
|
|
|
# define BACKTRACE_ELF_SIZE 64
|
|
|
|
#else
|
|
|
|
# define BACKTRACE_ELF_SIZE 32
|
|
|
|
#endif
|
|
|
|
|
2020-03-01 11:55:32 +00:00
|
|
|
#define HAVE_DLFCN_H 1
|
|
|
|
#define HAVE_FCNTL 1
|
|
|
|
#define HAVE_INTTYPES_H 1
|
|
|
|
#define HAVE_LSTAT 1
|
|
|
|
#define HAVE_READLINK 1
|
|
|
|
#define HAVE_DL_ITERATE_PHDR 1
|
|
|
|
#define HAVE_ATOMIC_FUNCTIONS 1
|
|
|
|
#define HAVE_DECL_STRNLEN 1
|
2020-03-01 12:02:29 +00:00
|
|
|
|
2020-03-02 12:51:39 +00:00
|
|
|
#ifdef __APPLE__
|
|
|
|
# define HAVE_MACH_O_DYLD_H 1
|
|
|
|
#elif defined BSD
|
2020-03-01 12:02:29 +00:00
|
|
|
# define HAVE_KERN_PROC 1
|
|
|
|
# define HAVE_KERN_PROC_ARGS 1
|
|
|
|
#endif
|