Patch grabbed from OpenELEC.tv: support bison-2.6 commit f328373fee79971b8e5754ab05a182cb544b0e7f Author: Stephan Raue <stephan@openelec.tv> Date: Mon Jul 23 15:39:17 2012 +0200 diff -Naur libaacs-0.4.0-old/src/file/keydbcfg-parser.y libaacs-0.4.0-new/src/file/keydbcfg-parser.y --- libaacs-0.4.0-old/src/file/keydbcfg-parser.y 2012-05-04 04:23:42.000000000 -0700 +++ libaacs-0.4.0-new/src/file/keydbcfg-parser.y 2012-07-21 19:20:14.000000000 -0700 @@ -1,4 +1,8 @@ -%{ +%code requires { +#include "file/keydbcfg.h" +} + +%code { /* * This file is part of libaacs * Copyright (C) 2010 gates @@ -18,7 +22,6 @@ * <http://www.gnu.org/licenses/>. */ -#include "file/keydbcfg.h" #include "util/macro.h" #include <stdio.h> @@ -85,7 +88,7 @@ /* uncomment the line below for debugging */ // int yydebug = 1; -%} +} /* Options set to generate a reentrant parser that is POSIX yacc compatible * The basic 'scanner' parameters are set. Also, another parameter is set * to pass in a title entry list struct used to hold all title entries.