1
0

400-alpine-libc.musl-fix.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. Alpine linux libc.musl build error fix
  2. Prevent build error on Alpine Linux host:
  3. libfakeroot.c error: conflicting types for 'id_t'
  4. Error relocating librecmc/staging_dir/host/lib/libfakeroot.so: SEND_GET_XATTR: symbol not found
  5. --- a/libfakeroot.c
  6. +++ b/libfakeroot.c
  7. @@ -86,12 +86,14 @@
  8. #define SEND_STAT64(a,b,c) send_stat64(a,b,c)
  9. #define SEND_GET_STAT(a,b) send_get_stat(a,b)
  10. #define SEND_GET_STAT64(a,b) send_get_stat64(a,b)
  11. +#define SEND_GET_XATTR(a,b,c) send_get_xattr(a,b,c)
  12. #define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b,c)
  13. #else
  14. #define SEND_STAT(a,b,c) send_stat(a,b)
  15. #define SEND_STAT64(a,b,c) send_stat64(a,b)
  16. #define SEND_GET_STAT(a,b) send_get_stat(a)
  17. #define SEND_GET_STAT64(a,b) send_get_stat64(a)
  18. +#define SEND_GET_XATTR(a,b,c) send_get_xattr(a,b)
  19. #define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b)
  20. #endif
  21. @@ -142,8 +144,9 @@
  22. /* 10.10 uses id_t in getpriority/setpriority calls, so pretend
  23. id_t is used everywhere, just happens to be int on some OSes */
  24. -#ifndef _ID_T
  25. +#if !defined(_ID_T) && !defined(__DEFINED_id_t)
  26. #define _ID_T
  27. +#define __DEFINED_id_t
  28. typedef int id_t;
  29. #endif
  30. #endif