Fix compilation issue while xml is disabled

This commit is contained in:
Felipe Zimmerle
2018-02-21 16:15:05 -03:00
parent ff782ddfa4
commit ac100785d1
9 changed files with 54 additions and 6 deletions

View File

@@ -23,6 +23,7 @@
namespace modsecurity {
namespace RequestBodyProcessor {
#ifdef WITH_LIBXML2
XML::XML(Transaction *transaction)
: m_transaction(transaction) {
@@ -148,6 +149,7 @@ bool XML::complete(std::string *error) {
return true;
}
#endif
} // namespace RequestBodyProcessor
} // namespace modsecurity

View File

@@ -13,9 +13,10 @@
*
*/
#ifdef WITH_LIBXML2
#include <libxml/xmlschemas.h>
#include <libxml/xpath.h>
#endif
#include <string>
#include <iostream>
@@ -30,6 +31,7 @@
namespace modsecurity {
namespace RequestBodyProcessor {
#ifdef WITH_LIBXML2
struct xml_data {
xmlSAXHandler *sax_handler;
@@ -63,6 +65,8 @@ class XML {
std::string m_header;
};
#endif
} // namespace RequestBodyProcessor
} // namespace modsecurity