100-musl-compat.patch (662B)
1 --- a/src/common/compat/poll.h 2 +++ b/src/common/compat/poll.h 3 @@ -55,6 +55,10 @@ static inline void __lttng_poll_free(voi 4 #include <features.h> 5 #include <common/compat/fcntl.h> 6 7 +#ifndef __GLIBC_PREREQ 8 +#define __GLIBC_PREREQ(maj, min) (0) 9 +#endif 10 + 11 /* See man epoll(7) for this define path */ 12 #define COMPAT_EPOLL_PROC_PATH "/proc/sys/fs/epoll/max_user_watches" 13 14 --- a/src/common/runas.h 15 +++ b/src/common/runas.h 16 @@ -21,6 +21,7 @@ 17 18 #include <unistd.h> 19 #include <pthread.h> 20 +#include <sys/stat.h> 21 22 int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid); 23 int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid);