diff --git a/nel/include/nel/gui/html_parser.h b/nel/include/nel/gui/html_parser.h
index 0c36014da..cf1392c0b 100644
--- a/nel/include/nel/gui/html_parser.h
+++ b/nel/include/nel/gui/html_parser.h
@@ -19,6 +19,9 @@
#include "nel/misc/types_nl.h"
+// Forward declarations for libxml2
+typedef struct _xmlNode xmlNode;
+
namespace NLGUI
{
class CHtmlElement;