elfutils: bump to 0.167
[openwrt/openwrt.git] / package / libs / elfutils / patches / 003-libint-stub.patch
1 --- a/libelf/libelfP.h
2 +++ b/libelf/libelfP.h
3 @@ -43,6 +43,9 @@
4 #include <stdio.h>
5 #include <string.h>
6
7 +#ifdef _ /* fix libintl-stub */
8 +#undef _
9 +#endif
10 /* gettext helper macros. */
11 #define _(Str) dgettext ("elfutils", Str)
12
13 --- a/libdw/libdwP.h
14 +++ b/libdw/libdwP.h
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 --- a/libdwfl/libdwflP.h
27 +++ b/libdwfl/libdwflP.h
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 --- a/libasm/libasmP.h
39 +++ b/libasm/libasmP.h
40 @@ -35,6 +35,9 @@
41
42 #include "libdwelf.h"
43
44 +#ifdef _ /* fix libintl-stub */
45 +#undef _
46 +#endif
47 /* gettext helper macros. */
48 #define _(Str) dgettext ("elfutils", Str)
49