Description: Fix build failure with libxml >= 2.12
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/1073822


--- sight.orig/lib/__/core/runtime/detail/io/validator.cpp
+++ sight/lib/__/core/runtime/detail/io/validator.cpp
@@ -86,7 +86,7 @@
     ); schema_parser_context != nullptr)
     {
         // Set the structured error callback
-        xmlSchemaSetParserStructuredErrors(schema_parser_context.get(), validator::error_handler, this);
+        xmlSchemaSetParserStructuredErrors(schema_parser_context.get(), reinterpret_cast<xmlStructuredErrorFunc>(validator::error_handler), this);
 
         // Load XML schema content
         if(!m_schema)
@@ -105,7 +105,7 @@
         )))
         {
             // Set the structured error callback
-            xmlSchemaSetValidStructuredErrors(m_schema_valid_context.get(), validator::error_handler, this);
+            xmlSchemaSetValidStructuredErrors(m_schema_valid_context.get(), reinterpret_cast<xmlStructuredErrorFunc>(validator::error_handler), this);
         }
     }
     else
--- sight.orig/lib/__/core/runtime/detail/io/validator.hpp
+++ sight/lib/__/core/runtime/detail/io/validator.hpp
@@ -27,7 +27,7 @@
 #include "core/runtime/types.hpp"
 #include "core/runtime/validator.hpp"
 
-#include <libxml/xmlschemastypes.h>
+#include <libxml/xmlschemas.h>
 #include <libxml/xmlversion.h>
 
 #include <filesystem>
