diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-05-05 12:09:05 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-05-13 14:34:19 +0200 |
commit | e480ddd7b308b5dd5188a18eaa33301c0e833384 (patch) | |
tree | 2f212db4b454f306f3159b4fbfc711dfb346f48a /meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch | |
parent | b2c99948e118e394bfb64bf9536b417cbd2d6010 (diff) | |
download | meta-openembedded-e480ddd7b308b5dd5188a18eaa33301c0e833384.tar.gz |
libgnomeprint: Fix build with newer bison >= 3
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch')
-rw-r--r-- | meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch b/meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch new file mode 100644 index 000000000..29d410a0a --- /dev/null +++ b/meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Index: libgnomeprint-2.18.8/libgnomeprint/grammar.y | ||
2 | =================================================================== | ||
3 | --- libgnomeprint-2.18.8.orig/libgnomeprint/grammar.y | ||
4 | +++ libgnomeprint-2.18.8/libgnomeprint/grammar.y | ||
5 | @@ -99,7 +99,7 @@ gnome_print_filter_parse_prop (GnomePrin | ||
6 | } | ||
7 | |||
8 | static int yylex (void *lvalp); | ||
9 | -static int yyerror (const char *s); | ||
10 | +static int yyerror (graph_t *g, const char *s); | ||
11 | %} | ||
12 | |||
13 | %union { | ||
14 | @@ -117,6 +117,7 @@ static int yyerror (const char *s); | ||
15 | %type <p> pool | ||
16 | |||
17 | %pure_parser | ||
18 | +%parse-param { graph_t *graph } | ||
19 | |||
20 | %start graph | ||
21 | %% | ||
22 | @@ -185,7 +186,7 @@ graph: filter { | ||
23 | %% | ||
24 | |||
25 | static int | ||
26 | -yyerror (const char *s) | ||
27 | +yyerror (graph_t *g, const char *s) | ||
28 | { | ||
29 | return -1; | ||
30 | } | ||