void-packages/srcpkgs/widelands/patches/fix_nl_msg_cat_cntr.patch

25 lines
428 B
Diff

--- src/base/i18n.cc 2016-11-10 08:28:01.000000000 +0100
+++ src/base/i18n.cc 2017-12-19 07:16:43.225723387 +0100
@@ -45,7 +45,9 @@
#endif
#endif
+#if defined(__GLIBC__)
extern int _nl_msg_cat_cntr;
+#endif
namespace i18n {
@@ -302,9 +304,11 @@
locale = lang;
}
+#if defined(__GLIBC__)
/* Finally make changes known. */
++_nl_msg_cat_cntr;
#endif
+#endif
SETLOCALE(LC_ALL, ""); // call to libintl