400-alpine-libc.musl-fix.patch 846 B

1234567891011121314151617181920212223
  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 openwrt/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