X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjo-overlay.git;a=blobdiff_plain;f=dev-lang%2Fphp%2Ffiles%2Fbison_build_2a.patch;fp=dev-lang%2Fphp%2Ffiles%2Fbison_build_2a.patch;h=7dedd036bcaab413091d5121aa6d29ca9a15d878;hp=0000000000000000000000000000000000000000;hb=e9b6003551af59f6957afa8e076c2433c3778166;hpb=15005b00acc089b4c7cec4bdaaf3d58f0aef444c diff --git a/dev-lang/php/files/bison_build_2a.patch b/dev-lang/php/files/bison_build_2a.patch new file mode 100644 index 0000000..7dedd03 --- /dev/null +++ b/dev-lang/php/files/bison_build_2a.patch @@ -0,0 +1,30 @@ +Gentoo bug: #494240 +Upstream: #64503 + +--- Zend/zend_language_parser.y.orig 2013-12-14 12:25:43.528989017 +0100 ++++ Zend/zend_language_parser.y 2013-12-14 12:26:30.088988957 +0100 +@@ -38,10 +38,6 @@ + + #define YYERROR_VERBOSE + #define YYSTYPE znode +-#ifdef ZTS +-# define YYPARSE_PARAM tsrm_ls +-# define YYLEX_PARAM tsrm_ls +-#endif + + + %} +@@ -49,6 +45,13 @@ + %pure_parser + %expect 2 + ++%code requires { ++#ifdef ZTS ++# define YYPARSE_PARAM tsrm_ls ++# define YYLEX_PARAM tsrm_ls ++#endif ++} ++ + %left T_INCLUDE T_INCLUDE_ONCE T_EVAL T_REQUIRE T_REQUIRE_ONCE + %left ',' + %left T_LOGICAL_OR