x11-libs/neXtaw: fix clang16 patch for non-bison yacc

Looking at bison mailing lists when don't know yacc
is a bad influence.

Fixes: bd7aa280e3
Closes: https://bugs.gentoo.org/876975
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-10-13 08:13:18 -04:00
parent 93c8551378
commit 51d79df1c2

View File

@@ -7,14 +7,12 @@ https://bugs.gentoo.org/871489
#include <X11/Xos.h>
--- a/X11/neXtaw/laygram.y
+++ b/X11/neXtaw/laygram.y
@@ -16,2 +16,7 @@
@@ -253,2 +253,5 @@
+%code provides {
+ void yyerror(char *s);
+ int yylex(void);
+}
+void yyerror(char *s);
+int yylex(void);
+
%union {
int yywrap ()
--- a/X11/neXtaw/laylex.l
+++ b/X11/neXtaw/laylex.l
@@ -88,2 +88,3 @@