[tools] bison: fix compilation with stub intl header
[openwrt.git] / tools / bison / patches / 010-intl-stub-compat.patch
diff --git a/tools/bison/patches/010-intl-stub-compat.patch b/tools/bison/patches/010-intl-stub-compat.patch
new file mode 100644 (file)
index 0000000..7690e10
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -57,9 +57,9 @@ main (int argc, char *argv[])
+ {
+   program_name = argv[0];
+   setlocale (LC_ALL, "");
+-  (void) bindtextdomain (PACKAGE, LOCALEDIR);
+-  (void) bindtextdomain ("bison-runtime", LOCALEDIR);
+-  (void) textdomain (PACKAGE);
++  bindtextdomain (PACKAGE, LOCALEDIR);
++  bindtextdomain ("bison-runtime", LOCALEDIR);
++  textdomain (PACKAGE);
+   uniqstrs_new ();