diff options
author | Ruben Schuller <ruben@orgizm.net> | 2013-10-27 00:27:57 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-10-27 23:38:59 -0500 |
commit | 84e70a77043334578f31ed1a9a92ac097a2a5246 (patch) | |
tree | 6b2e5dacefee8a27f94b9c5e5307359786307de6 /network/netsurf/nsgenbind-lexer.l.patch | |
parent | 060251d26de6ed8bc75aa6d4d4d2a56eb7ed1efa (diff) |
network/netsurf: Updated for version 3.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/netsurf/nsgenbind-lexer.l.patch')
-rw-r--r-- | network/netsurf/nsgenbind-lexer.l.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/network/netsurf/nsgenbind-lexer.l.patch b/network/netsurf/nsgenbind-lexer.l.patch new file mode 100644 index 0000000000000..17165fb3acbd2 --- /dev/null +++ b/network/netsurf/nsgenbind-lexer.l.patch @@ -0,0 +1,18 @@ +index b257c83..8189a72 100644 +--- a/src/nsgenbind-lexer.l ++++ b/src/nsgenbind-lexer.l +@@ -19,6 +19,16 @@ + yylloc->first_column = yylloc->last_column + 1; \ + yylloc->last_column += yyleng; + ++ ++/* Ensure compatability with bison 2.6 and later */ ++#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED && defined NSGENBIND_STYPE_IS_DECLARED ++#define YYSTYPE NSGENBIND_STYPE ++#endif ++ ++#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED && defined NSGENBIND_LTYPE_IS_DECLARED ++#define YYLTYPE NSGENBIND_LTYPE ++#endif ++ + %} |