ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.git] / package / libs / elfutils / patches / 100-musl-compat.patch
1 --- a/libdw/libdw_alloc.c
2 +++ b/libdw/libdw_alloc.c
3 @@ -152,5 +152,5 @@ __attribute ((noreturn)) attribute_hidde
4 __libdw_oom (void)
5 {
6 while (1)
7 - error (EXIT_FAILURE, ENOMEM, "libdw");
8 + error (EXIT_FAILURE, errno, gettext ("cannot allocate memory"));
9 }
10 --- a/libdwfl/dwfl_error.c
11 +++ b/libdwfl/dwfl_error.c
12 @@ -140,6 +140,7 @@ __libdwfl_seterrno (Dwfl_Error error)
13 static const char *
14 errnomsg(int error)
15 {
16 +#if defined(__GLIBC__) && !defined(__UCLIBC__)
17 /* Won't be changed by strerror_r, but not const so compiler doesn't throw warning */
18 static char unknown[] = "unknown error";
19
20 @@ -150,6 +151,9 @@ errnomsg(int error)
21 static __thread char msg[128];
22 return strerror_r (error, msg, sizeof (msg)) ? unknown : msg;
23 #endif
24 +#else
25 + return strerror (error & 0xffff);
26 +#endif
27 }
28
29 const char *