Fix build with libxml2 v2.12
With libxml2 v2.12, building KDocTools fails with the following error:
kde/src/kdoctools/src/xslt.cpp: In function ‘QString KDocTools::transform(const QString&, const QString&, const QList<const char*>&)’:
kde/src/kdoctools/src/xslt.cpp:155:9: error: ‘xmlIndentTreeOutput’ was not declared in this scope
155 | xmlIndentTreeOutput = 1;
| ^~~~~~~~~~~~~~~~~~~
kde/src/kdoctools/src/xslt.cpp:157:9: error: ‘xmlIndentTreeOutput’ was not declared in this scope
157 | xmlIndentTreeOutput = 0;
| ^~~~~~~~~~~~~~~~~~~
This is possibly caused by https://gitlab.gnome.org/GNOME/libxml2/-/commit/11a1839ddd67457a68ce938157b3525159a198c8.
Include the correct header to ensure xmlIndentTreeOutput
is defined.
Edited by hexchain