[tools] bison: fix compilation with stub intl header
[openwrt/svn-archive/archive.git] / tools / bison / patches / 010-intl-stub-compat.patch
1 --- a/src/main.c
2 +++ b/src/main.c
3 @@ -57,9 +57,9 @@ main (int argc, char *argv[])
4 {
5 program_name = argv[0];
6 setlocale (LC_ALL, "");
7 - (void) bindtextdomain (PACKAGE, LOCALEDIR);
8 - (void) bindtextdomain ("bison-runtime", LOCALEDIR);
9 - (void) textdomain (PACKAGE);
10 + bindtextdomain (PACKAGE, LOCALEDIR);
11 + bindtextdomain ("bison-runtime", LOCALEDIR);
12 + textdomain (PACKAGE);
13
14 uniqstrs_new ();
15