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 <fcntl.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
@ -27,4 +28,4 @@ char *ppath_pcloud();
|
||||||
char *ppath_private(char *name);
|
char *ppath_private(char *name);
|
||||||
char *ppath_private_tmp();
|
char *ppath_private_tmp();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#ifdef __GLIBC__
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
|
#else
|
||||||
|
#include <libunwind.h>
|
||||||
|
#endif
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue