Matthias Kaehlcke reported a build problem when not compiling HTML support

* xmllint.c: Matthias Kaehlcke reported a build problem when
  not compiling HTML support in.
daniel

svn path=/trunk/; revision=3802
diff --git a/ChangeLog b/ChangeLog
index 70a3d40..9e4c96a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Nov  6 14:34:35 CET 2008 Daniel Veillard <daniel@veillard.com>
+
+	* xmllint.c: Matthias Kaehlcke reported a build problem when
+	  not compiling HTML support in.
+
 Fri Oct 17 15:24:08 CEST 2008 Daniel Veillard <daniel@veillard.com>
 
 	* configure.in doc/Makefile.am: patch from Adrian Bunk which
diff --git a/xmllint.c b/xmllint.c
index 6955fde..77c1e62 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2753,9 +2753,11 @@
 #endif
 
 #ifdef LIBXML_DEBUG_ENABLED
+#if defined(LIBXML_HTML_ENABLED) || defined(LIBXML_VALID_ENABLED)
     if ((debugent) && (!html))
 	xmlDebugDumpEntities(stderr, doc);
 #endif
+#endif
 
     /*
      * free it.