Do not enable yacc trace facility unconditionally Define DEBUG and set yydebug if you want that. Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/xkbcomp/misc.c b/src/xkbcomp/misc.c
index 85b1a1b..ecd4d01 100644
--- a/src/xkbcomp/misc.c
+++ b/src/xkbcomp/misc.c
@@ -30,7 +30,6 @@
#include "xkbpath.h"
#include "keycodes.h"
#include "misc.h"
-#include <X11/keysym.h>
#include "parseutils.h"
/***====================================================================***/
diff --git a/src/xkbcomp/xkbparse.y b/src/xkbcomp/xkbparse.y
index a5f0067..a7a8335 100644
--- a/src/xkbcomp/xkbparse.y
+++ b/src/xkbcomp/xkbparse.y
@@ -25,10 +25,10 @@
********************************************************/
%{
-#define DEBUG 1
#ifdef DEBUG
-#define YYDEBUG 1
+#define YYDEBUG 1
#endif
+
#include "parseutils.h"
#include "xkbmisc.h"
#include <X11/keysym.h>