b43-tools: fix compile error: undefined reference to `yydebug'
[openwrt/staging/lynxis/omap.git] / tools / b43-tools / patches / 100-b43-asm-fix-compile-error-undefined-reference-to-yyd.patch
1 --- a/assembler/Makefile
2 +++ b/assembler/Makefile
3 @@ -30,7 +30,7 @@ BIN = b43-asm.bin
4 SRCS = parser.c scanner.c main.c initvals.c util.c args.c
5
6 # YACC related CFLAGS
7 -CFLAGS += -DYYSTYPE="void *" -DYYERROR_VERBOSE -DYYDEBUG -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Wno-unused
8 +CFLAGS += -DYYSTYPE="void *" -DYYERROR_VERBOSE -DYYDEBUG=1 -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Wno-unused
9
10 .SUFFIXES:
11 .PHONY: all install clean distclean
12 diff --git a/assembler/main.c b/assembler/main.c
13 index afca996..a62a15e 100644
14 --- a/assembler/main.c
15 +++ b/assembler/main.c
16 @@ -1260,7 +1260,7 @@ static void initialize(void)
17 {
18 INIT_LIST_HEAD(&infile.sl);
19 INIT_LIST_HEAD(&infile.ivals);
20 -#ifdef YYDEBUG
21 +#if YYDEBUG
22 if (IS_INSANE_DEBUG)
23 yydebug = 1;
24 else
25 --
26 1.7.10.4
27