aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libexplain/files/patch-codegen_gram.y
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-05-25 18:25:19 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-05-25 18:25:19 +0000
commit3f66b8f90626e67effff0f45171f94d6c2e0a975 (patch)
treedcdf4a30788fd5e8ebbe59e46aee41233ae65cf0 /devel/libexplain/files/patch-codegen_gram.y
parent9e38c3f75da446e823656c04656bf8cefd1fb8bf (diff)
Fix build with bison 3.6.2
Diffstat (limited to 'devel/libexplain/files/patch-codegen_gram.y')
-rw-r--r--devel/libexplain/files/patch-codegen_gram.y19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/libexplain/files/patch-codegen_gram.y b/devel/libexplain/files/patch-codegen_gram.y
new file mode 100644
index 000000000000..2715e4148c81
--- /dev/null
+++ b/devel/libexplain/files/patch-codegen_gram.y
@@ -0,0 +1,19 @@
+--- codegen/gram.y.orig 2013-12-08 01:47:33 UTC
++++ codegen/gram.y
+@@ -17,6 +17,8 @@
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
++%define api.prefix {gram_}
++%define parse.error verbose
+ %{
+
+ #include <libexplain/ac/stdio.h>
+@@ -29,7 +31,6 @@
+ #include <codegen/node.h>
+
+ #define YYDEBUG 0
+-#define YYERROR_VERBOSE 1
+
+ %}
+