diff --git a/lib/xmltree/xmlinterface.cpp b/lib/xmltree/xmlinterface.cpp index a1699d612..e8d9792bc 100644 --- a/lib/xmltree/xmlinterface.cpp +++ b/lib/xmltree/xmlinterface.cpp @@ -42,7 +42,8 @@ #else /* USE_LIBXML */ #include "xmltok.h" #endif /* USE_LIBXML */ - +#include +#include unsigned long xmlGetNumericAttribute(const xmlNodePtr node, const char *name, const int base) { @@ -239,6 +240,9 @@ xmlDocPtr parseXmlFile(const char * filename, bool warning_by_nonexistence /* = } while (!done); + if (posix_fadvise(fileno(xml_file), 0, 0, POSIX_FADV_DONTNEED) != 0) + perror("posix_fadvise FAILED!"); + fclose(xml_file); if (!tree_parser->RootNode())