b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | Alpine linux libc.musl build error fix |
| 2 | |
| 3 | Prevent build error on Alpine Linux host: |
| 4 | libfakeroot.c error: conflicting types for 'id_t' |
| 5 | Error relocating openwrt/staging_dir/host/lib/libfakeroot.so: SEND_GET_XATTR: symbol not found |
| 6 | |
| 7 | --- a/libfakeroot.c |
| 8 | +++ b/libfakeroot.c |
| 9 | @@ -86,12 +86,14 @@ |
| 10 | #define SEND_STAT64(a,b,c) send_stat64(a,b,c) |
| 11 | #define SEND_GET_STAT(a,b) send_get_stat(a,b) |
| 12 | #define SEND_GET_STAT64(a,b) send_get_stat64(a,b) |
| 13 | +#define SEND_GET_XATTR(a,b,c) send_get_xattr(a,b,c) |
| 14 | #define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b,c) |
| 15 | #else |
| 16 | #define SEND_STAT(a,b,c) send_stat(a,b) |
| 17 | #define SEND_STAT64(a,b,c) send_stat64(a,b) |
| 18 | #define SEND_GET_STAT(a,b) send_get_stat(a) |
| 19 | #define SEND_GET_STAT64(a,b) send_get_stat64(a) |
| 20 | +#define SEND_GET_XATTR(a,b,c) send_get_xattr(a,b) |
| 21 | #define SEND_GET_XATTR64(a,b,c) send_get_xattr64(a,b) |
| 22 | #endif |
| 23 | |