003-libint-stub.patch 923 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --- a/libelf/libelfP.h
  2. +++ b/libelf/libelfP.h
  3. @@ -43,6 +43,9 @@
  4. #include <stdio.h>
  5. #include <string.h>
  6. +#ifdef _ /* fix libintl-stub */
  7. +#undef _
  8. +#endif
  9. /* gettext helper macros. */
  10. #define _(Str) dgettext ("elfutils", Str)
  11. --- a/libdw/libdwP.h
  12. +++ b/libdw/libdwP.h
  13. @@ -36,7 +36,9 @@
  14. #include <libdw.h>
  15. #include <dwarf.h>
  16. -
  17. +#ifdef _ /* fix libintl-stub */
  18. +#undef _
  19. +#endif
  20. /* gettext helper macros. */
  21. #define _(Str) dgettext ("elfutils", Str)
  22. --- a/libdwfl/libdwflP.h
  23. +++ b/libdwfl/libdwflP.h
  24. @@ -46,6 +46,9 @@
  25. typedef struct Dwfl_Process Dwfl_Process;
  26. +#ifdef _ /* fix libintl-stub */
  27. +#undef _
  28. +#endif
  29. /* gettext helper macros. */
  30. #define _(Str) dgettext ("elfutils", Str)
  31. --- a/libasm/libasmP.h
  32. +++ b/libasm/libasmP.h
  33. @@ -33,6 +33,9 @@
  34. #include <libasm.h>
  35. +#ifdef _ /* fix libintl-stub */
  36. +#undef _
  37. +#endif
  38. /* gettext helper macros. */
  39. #define _(Str) dgettext ("elfutils", Str)