elfutils: import package from packages.git
[openwrt-github/.git] / package / libs / elfutils / patches / 002-argp_standalone.patch
1 --- elfutils-0.160/lib/color.c.old      2014-11-06 03:46:43.584116134 -0200
2 +++ elfutils-0.160/lib/color.c  2014-11-06 03:47:25.840116128 -0200
3 @@ -131,8 +131,10 @@
4    - 'never', 'no', 'none'\n\
5    - 'auto', 'tty', 'if-tty'\n"),
6                      program_invocation_short_name, arg);
7 +          char program_invocation_short_name_nonconst[sizeof(program_invocation_short_name)];
8 +          strcpy(program_invocation_short_name_nonconst, program_invocation_short_name);
9               argp_help (&color_argp, stderr, ARGP_HELP_SEE,
10 -                        program_invocation_short_name);
11 +                        program_invocation_short_name_nonconst);
12               exit (EXIT_FAILURE);
13             }
14         }