aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ptlib
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-11-03 00:51:09 +0800
committerantoine <antoine@FreeBSD.org>2014-11-03 00:51:09 +0800
commit36ec7b0cb54872664e51e360c620751e5ad75f39 (patch)
tree6606b3ef36a19f08fb201d4abc648def747a1f19 /devel/ptlib
parentb2ed0204b826c348ff84c0e6190c83bb7cafb491 (diff)
downloadfreebsd-ports-gnome-36ec7b0cb54872664e51e360c620751e5ad75f39.tar.gz
freebsd-ports-gnome-36ec7b0cb54872664e51e360c620751e5ad75f39.tar.zst
freebsd-ports-gnome-36ec7b0cb54872664e51e360c620751e5ad75f39.zip
Allow building with bison 3
PR: ports/194680
Diffstat (limited to 'devel/ptlib')
-rw-r--r--devel/ptlib/files/patch-src_ptlib_common_getdate.y47
1 files changed, 47 insertions, 0 deletions
diff --git a/devel/ptlib/files/patch-src_ptlib_common_getdate.y b/devel/ptlib/files/patch-src_ptlib_common_getdate.y
new file mode 100644
index 000000000000..7c0561785f02
--- /dev/null
+++ b/devel/ptlib/files/patch-src_ptlib_common_getdate.y
@@ -0,0 +1,47 @@
+--- src/ptlib/common/getdate.y.orig 2013-02-20 02:11:52 UTC
++++ src/ptlib/common/getdate.y
+@@ -106,8 +106,6 @@ struct Variables {
+
+
+ #define YYPURE 1
+-#define YYLEX_PARAM VARIABLE
+-#define YYPARSE_PARAM parseParam
+
+ #define yyparse PTime_yyparse
+ #define yylex PTime_yylex
+@@ -121,9 +119,9 @@ static int yyparse(void *);
+ static int yylex();
+
+ #ifdef __GNUC__
+-static int yyerror(char const *msg);
++static int yyerror(void *, char const *msg);
+ #else
+-static void yyerror(char const *msg);
++static void yyerror(void *, char const *msg);
+ #endif
+
+
+@@ -133,6 +131,8 @@ static void SetPossibleDate(struct Varia
+ %}
+
+ %pure_parser
++%parse-param {void *parseParam}
++%lex-param {void *parseParam}
+
+ %union {
+ time_t Number;
+@@ -1018,12 +1018,12 @@ time_t STDAPICALLTYPE PTimeParse(void *
+ #endif
+
+ #ifdef __GNUC__
+-int yyerror(const char * s)
++int yyerror(void *var, const char * s)
+ {
+ return 0;
+ }
+ #else
+-static void yyerror(const char * s)
++static void yyerror(void *var, const char * s)
+ {
+ }
+ #endif