Musl fixes (#143)

* use libunwind where glibc is not available

* use sys/stat.h for struct stat definition
This commit is contained in:
kost 2025-04-13 09:11:11 +02:00 committed by GitHub
parent 9842c90f89
commit a4b92682ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#include <fcntl.h>
#include <stdint.h>
#include <sys/stat.h>
typedef struct {
const char *name;
@ -27,4 +28,4 @@ char *ppath_pcloud();
char *ppath_private(char *name);
char *ppath_private_tmp();
#endif
#endif

View File

@ -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>