add chaos_calmer branch
[15.05/openwrt.git] / package / libs / elfutils / patches / 003-libint-stub.patch
1 --- elfutils-0.160/libelf/libelfP.h.old 2014-11-06 01:47:55.420116984 -0200
2 +++ elfutils-0.160/libelf/libelfP.h     2014-11-06 01:48:33.368116980 -0200
3 @@ -43,6 +43,9 @@
4  #include <string.h>
5  
6 +#ifdef _ /* fix libintl-stub */
7 +#undef _
8 +#endif
9  /* gettext helper macros.  */
10  #define _(Str) dgettext ("elfutils", Str)
11  
12  
13 --- elfutils-0.160/libdw/libdwP.h.old   2014-11-06 02:27:12.628116703 -0200
14 +++ elfutils-0.160/libdw/libdwP.h       2014-11-06 02:27:39.816116700 -0200
15 @@ -36,7 +36,9 @@
16  #include <libdw.h>
17  #include <dwarf.h>
18  
19 -
20 +#ifdef _ /* fix libintl-stub */
21 +#undef _
22 +#endif
23  /* gettext helper macros.  */
24  #define _(Str) dgettext ("elfutils", Str)
25  
26 --- elfutils-0.160/libdwfl/libdwflP.h.old       2014-11-06 02:31:20.112116673 -0200
27 +++ elfutils-0.160/libdwfl/libdwflP.h   2014-11-06 02:33:00.548116661 -0200
28 @@ -46,6 +46,9 @@
29  
30  typedef struct Dwfl_Process Dwfl_Process;
31  
32 +#ifdef _ /* fix libintl-stub */
33 +#undef _
34 +#endif
35  /* gettext helper macros.  */
36  #define _(Str) dgettext ("elfutils", Str)
37  
38 --- elfutils-0.160/libasm/libasmP.h.old 2014-11-06 02:31:32.064116672 -0200
39 +++ elfutils-0.160/libasm/libasmP.h     2014-11-06 02:33:08.656116660 -0200
40 @@ -33,6 +33,9 @@
41  
42  #include <libasm.h>
43  
44 +#ifdef _ /* fix libintl-stub */
45 +#undef _
46 +#endif
47  /* gettext helper macros.  */
48  #define _(Str) dgettext ("elfutils", Str)
49