[PATCH:libXaw3d] Make laygram.y compatible with bison 2.3 and older

Alan Coopersmith alan.coopersmith at oracle.com
Sat Sep 3 11:34:34 PDT 2011

bison 2.3b added %name-prefix "prefix" and deprecated the older
%name-prefix="prefix" form, but we don't have a check for the bison
version in autoconf.

Without this fix, older bison gives the cryptic error:
.../src/laygram.y:1.14-20: syntax error, unexpected string, expecting =

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

Tested on Solaris with bison 2.3, not tested on a later bison with the new
syntax supported.   I'm not sure this is the best way to do this, but it
works for me - if anyone has a better idea, lets hear it.

 src/laygram.y |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/laygram.y b/src/laygram.y
index 3644dd4..48cbc16 100644
--- a/src/laygram.y
+++ b/src/laygram.y
@@ -1,4 +1,4 @@
-%name-prefix "LayYY"
 #include    <X11/Xlib.h>

More information about the xorg-devel mailing list