summaryrefslogtreecommitdiff
path: root/textproc/lttoolbox/files/patch-lttoolbox_lt__comp.cc
blob: 11e2fa496cd2ddfd044154d43a63ed70a4f656ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- lttoolbox/lt_comp.cc.orig	2025-04-05 18:21:01 UTC
+++ lttoolbox/lt_comp.cc
@@ -19,6 +19,7 @@
 #include <lttoolbox/lt_locale.h>
 #include <lttoolbox/cli.h>
 #include <lttoolbox/file_utils.h>
+#include <lttoolbox/xml_walk_util.h>
 
 #include <iostream>
 
@@ -119,7 +120,11 @@ int main(int argc, char *argv[])
     std::cerr << "Error: Cannot not open file '" << infile << "'." << std::endl << std::endl;
     exit(EXIT_FAILURE);
   }
-  initGenericErrorDefaultFunc(NULL);
+#if LIBXML_VERSION < 21200
+    initGenericErrorDefaultFunc(NULL);
+#else
+    xmlSetGenericErrorFunc(NULL, handler);  // match new signature if needed
+#endif
 
 
   if(opc == "lr")