Browse Source

kconfig: fix `zconfdebug' extern declaration

This symbol is only exist if YYDEBUG is defined.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Arnaud Lacombe 14 years ago
parent
commit
4ce2c1e8e8
1 changed files with 4 additions and 2 deletions
  1. 4 2
      scripts/kconfig/lkc.h

+ 4 - 2
scripts/kconfig/lkc.h

@@ -68,10 +68,12 @@ struct kconf_id {
 	enum symbol_type stype;
 };
 
+#ifdef YYDEBUG
+extern int zconfdebug;
+#endif
+
 int zconfparse(void);
 void zconfdump(FILE *out);
-
-extern int zconfdebug;
 void zconf_starthelp(void);
 FILE *zconf_fopen(const char *name);
 void zconf_initscan(const char *name);