[tools] bison: fix compilation with stub intl header
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 4 Mar 2011 20:37:15 +0000 (20:37 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 4 Mar 2011 20:37:15 +0000 (20:37 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25869 3c298f89-4303-0410-b956-a3cf2f4a3e73

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 ();
This page took 0.036876 seconds and 4 git commands to generate.