Musl fixes (#143)
* use libunwind where glibc is not available * use sys/stat.h for struct stat definition
This commit is contained in:
parent
9842c90f89
commit
a4b92682ba
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <fcntl.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,11 @@
|
|||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#ifdef __GLIBC__
|
||||
#include <execinfo.h>
|
||||
#else
|
||||
#include <libunwind.h>
|
||||
#endif
|
||||
#include <pthread.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue