ptlib: fix build with bison 3
[unleashed-userland.git] / components / library / ptlib / patches / ptlib-02-bison.patch
blobfcc8d0d2e7a8c249f2baab49b8d9479a058c83fb
1 --- ptlib-2.10.11/./src/ptlib/common/getdate.y 2013-08-15 01:20:26.000000000 +0200
2 +++ /mnt/chroot/cauldron/home/dan/rpm/BUILD/ptlib-2.10.11/src/ptlib/common/getdate.y 2013-12-15 00:24:27.866481490 +0100
3 @@ -121,9 +121,9 @@
4 static int yylex();
6 #ifdef __GNUC__
7 -static int yyerror(char const *msg);
8 +static int yyerror(void *, char const *msg);
9 #else
10 -static void yyerror(char const *msg);
11 +static void yyerror(void *, char const *msg);
12 #endif
15 @@ -132,7 +132,8 @@
19 -%pure_parser
20 +%pure-parser
21 +%parse-param {void *parseParam}
23 %union {
24 time_t Number;
25 @@ -1018,12 +1019,12 @@
26 #endif
28 #ifdef __GNUC__
29 -int yyerror(const char * s)
30 +int yyerror(void *var, const char * s)
32 return 0;
34 #else
35 -static void yyerror(const char * s)
36 +static void yyerror(void *var, const char * s)
39 #endif