bison: fix compilation with stub intl header
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 4 Mar 2011 20:37:15 +0000 (20:37 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 4 Mar 2011 20:37:15 +0000 (20:37 +0000)
SVN-Revision: 25869

tools/bison/patches/010-intl-stub-compat.patch [new file with mode: 0644]

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 ();