elfutils: Fix compile with uClibc-ng
[openwrt/openwrt.git] / package / libs / elfutils / patches / 200-uclibc-ng-compat.patch
1 From: Rosen Penev <rosenp@gmail.com>
2 Date: Fri, 3 May 2019 17:59:55 +0000 (-0700)
3 Subject: lib/color: Fix compilation with uClibc
4 X-Git-Url: https://sourceware.org/git/?p=elfutils.git;a=commitdiff_plain;h=b5e8a481d4c9f9cdb26513784c09c57797fa2f46;hp=4628b0ea03a0d029cccbcda1cbfc450b4c5ad1bf
5
6 lib/color: Fix compilation with uClibc
7
8 elfutils passed -Werror and this call errors on uClibc with a mismatching
9 pointer type. Cast to char * to fix.
10
11 Signed-off-by: Rosen Penev <rosenp@gmail.com>
12 ---
13
14 diff --git a/lib/ChangeLog b/lib/ChangeLog
15 index 0914b2c..7381860 100644
16 --- a/lib/ChangeLog
17 +++ b/lib/ChangeLog
18 @@ -1,3 +1,7 @@
19 +2019-05-03 Rosen Penev <rosenp@gmail.com>
20 +
21 + * color.c (parse_opt): Cast program_invocation_short_name to char *.
22 +
23 2018-11-04 Mark Wielaard <mark@klomp.org>
24
25 * bpf.h: Add BPF_JLT, BPF_JLE, BPF_JSLT and BPF_JSLE.
26 diff --git a/lib/color.c b/lib/color.c
27 index 9ffbf55..20b9698 100644
28 --- a/lib/color.c
29 +++ b/lib/color.c
30 @@ -132,7 +132,7 @@ valid arguments are:\n\
31 - 'auto', 'tty', 'if-tty'\n"),
32 program_invocation_short_name, arg);
33 argp_help (&color_argp, stderr, ARGP_HELP_SEE,
34 - program_invocation_short_name);
35 + (char *) program_invocation_short_name);
36 exit (EXIT_FAILURE);
37 }
38 }