opendoas: Fix build with bison 3.8

https://lists.gnu.org/archive/html/bug-bison/2021-09/msg00006.html
This commit is contained in:
Dylan Araps 2021-09-08 09:41:29 +03:00
parent cb26a93803
commit e613c6ccec
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
5 changed files with 18 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
patch -p1 < bison-3.8.patch
BINOWN="$(id -u)" \
BINGRP="$(id -g)" \
./configure \

View File

@ -1,2 +1,3 @@
c9070ae745d0f1bbe68ef0783a3958cd011b409959f65fd100e6b42b8ad6b162
846a251c646e61329086eda6abde26329f5a358d5eeab1a0f075db36e5997687
28e74db164d001820ed295573f14610b76282ed15fee5fb819058949419ea860

View File

@ -0,0 +1,13 @@
diff --git a/parse.y b/parse.y
index 388c2a5..65fda3d 100644
--- a/parse.y
+++ b/parse.y
@@ -57,6 +57,8 @@ static size_t maxrules;
int parse_errors = 0;
+#define yyerror yyerror
+#define yylex yylex
static void yyerror(const char *, ...);
static int yylex(void);

View File

@ -1,2 +1,3 @@
https://github.com/Duncaen/OpenDoas/archive/vVERSION.tar.gz
files/doas.conf
patches/bison-3.8.patch

View File

@ -1 +1 @@
6.8.1 1
6.8.1 2