diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-04 20:37:15 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-03-04 20:37:15 +0000 |
commit | 200460fb548b87312b22542ca66b6265cc05aab6 (patch) | |
tree | bd0892acffb94ee0540449b944d83df91ec4a929 /tools/bison | |
parent | 45591c54c44158e8fb828bd886dde450d8aea00d (diff) | |
download | mtk-20170518-200460fb548b87312b22542ca66b6265cc05aab6.zip mtk-20170518-200460fb548b87312b22542ca66b6265cc05aab6.tar.gz mtk-20170518-200460fb548b87312b22542ca66b6265cc05aab6.tar.bz2 |
bison: fix compilation with stub intl header
SVN-Revision: 25869
Diffstat (limited to 'tools/bison')
-rw-r--r-- | tools/bison/patches/010-intl-stub-compat.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/bison/patches/010-intl-stub-compat.patch b/tools/bison/patches/010-intl-stub-compat.patch new file mode 100644 index 0000000..7690e10 --- /dev/null +++ b/tools/bison/patches/010-intl-stub-compat.patch @@ -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 (); + |