rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / applications / misc / mysql-workbench / fix-xml2.patch
blob857c3f9add4caefe6640db92ce0fdf81626ece4b
1 diff --git a/library/grt/src/grt.h b/library/grt/src/grt.h
2 index 47bfd63..59e664b 100644
3 --- a/library/grt/src/grt.h
4 +++ b/library/grt/src/grt.h
5 @@ -35,6 +35,7 @@
6 #include <stdexcept>
7 #include <boost/function.hpp>
8 #include <libxml/xmlmemory.h>
9 +#include <libxml/tree.h>
10 #include "base/threading.h"
11 #include <string>
12 #include <gmodule.h>
13 diff --git a/library/grt/src/unserializer.cpp b/library/grt/src/unserializer.cpp
14 index 6dda76d..a6f6a3c 100644
15 --- a/library/grt/src/unserializer.cpp
16 +++ b/library/grt/src/unserializer.cpp
17 @@ -401,7 +401,7 @@ ValueRef internal::Unserializer::unserialize_xmldata(const char *data, size_t si
18 xmlDocPtr doc = xmlReadMemory(data, (int)size, NULL, NULL, XML_PARSE_NOENT);
20 if (!doc) {
21 - xmlErrorPtr error = xmlGetLastError();
22 + const xmlError* error = xmlGetLastError();
24 if (error)
25 throw std::runtime_error(base::strfmt("Could not parse XML data. Line %d, %s", error->line, error->message));