From a4b92682baeb48d44f3bb0ea893e2c4d87c52124 Mon Sep 17 00:00:00 2001 From: kost Date: Sun, 13 Apr 2025 09:11:11 +0200 Subject: [PATCH] Musl fixes (#143) * use libunwind where glibc is not available * use sys/stat.h for struct stat definition --- pclsync/ppath.h | 3 ++- pclsync/psynclib.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pclsync/ppath.h b/pclsync/ppath.h index b8c4fed..d7e98fc 100644 --- a/pclsync/ppath.h +++ b/pclsync/ppath.h @@ -3,6 +3,7 @@ #include #include +#include typedef struct { const char *name; @@ -27,4 +28,4 @@ char *ppath_pcloud(); char *ppath_private(char *name); char *ppath_private_tmp(); -#endif \ No newline at end of file +#endif diff --git a/pclsync/psynclib.c b/pclsync/psynclib.c index 17aa299..0b5e6b2 100644 --- a/pclsync/psynclib.c +++ b/pclsync/psynclib.c @@ -30,7 +30,11 @@ */ #include +#ifdef __GLIBC__ #include +#else +#include +#endif #include #include #include