blob: 59360349113b37787b67655df435e3fa97502b2b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001Alpine linux libc.musl build error fix
2
3Prevent build error on Alpine Linux host:
4libfakeroot.c error: conflicting types for 'id_t'
5Error 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