100-b43-asm-fix-compile-error-undefined-reference-to-yyd.patch 778 B

123456789101112131415161718192021222324252627
  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. # YACC related CFLAGS
  6. -CFLAGS += -DYYSTYPE="void *" -DYYERROR_VERBOSE -DYYDEBUG -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Wno-unused
  7. +CFLAGS += -DYYSTYPE="void *" -DYYERROR_VERBOSE -DYYDEBUG=1 -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Wno-unused
  8. .SUFFIXES:
  9. .PHONY: all install clean distclean
  10. diff --git a/assembler/main.c b/assembler/main.c
  11. index afca996..a62a15e 100644
  12. --- a/assembler/main.c
  13. +++ b/assembler/main.c
  14. @@ -1260,7 +1260,7 @@ static void initialize(void)
  15. {
  16. INIT_LIST_HEAD(&infile.sl);
  17. INIT_LIST_HEAD(&infile.ivals);
  18. -#ifdef YYDEBUG
  19. +#if YYDEBUG
  20. if (IS_INSANE_DEBUG)
  21. yydebug = 1;
  22. else
  23. --
  24. 1.7.10.4