100-musl-compat.patch 662 B

1234567891011121314151617181920212223
  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. +#ifndef __GLIBC_PREREQ
  7. +#define __GLIBC_PREREQ(maj, min) (0)
  8. +#endif
  9. +
  10. /* See man epoll(7) for this define path */
  11. #define COMPAT_EPOLL_PROC_PATH "/proc/sys/fs/epoll/max_user_watches"
  12. --- a/src/common/runas.h
  13. +++ b/src/common/runas.h
  14. @@ -21,6 +21,7 @@
  15. #include <unistd.h>
  16. #include <pthread.h>
  17. +#include <sys/stat.h>
  18. int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
  19. int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid);