tools/fakeroot: update to 1.27
[openwrt/staging/chunkeey.git] / tools / fakeroot / patches / 400-alpine-libc.musl-fix.patch
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
24 @@ -136,8 +138,9 @@
25
26 /* 10.10 uses id_t in getpriority/setpriority calls, so pretend
27 id_t is used everywhere, just happens to be int on some OSes */
28 -#ifndef _ID_T
29 +#if !defined(_ID_T) && !defined(__DEFINED_id_t)
30 #define _ID_T
31 +#define __DEFINED_id_t
32 typedef int id_t;
33 #endif
34 #endif