aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2024-06-29 18:04:23 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2024-07-12 16:12:12 +0000
commit2b8253d764cc16cf584d86b4c27966717b212a9f (patch)
tree8cd58108e3d7a5f07d08a4bd49645a5f22630be4
parent85021ceb50f4a666667ceb117c0b1ef819c1adb3 (diff)
downloadports-2b8253d764cc16cf584d86b4c27966717b212a9f.tar.gz
ports-2b8253d764cc16cf584d86b4c27966717b212a9f.zip
sysutils/osinfo-db: fix build with newer libxml2
PR: 279957 Reported by: diizzy
-rw-r--r--sysutils/osinfo-db-tools/files/patch-tools_osinfo-db-validate.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/osinfo-db-tools/files/patch-tools_osinfo-db-validate.c b/sysutils/osinfo-db-tools/files/patch-tools_osinfo-db-validate.c
new file mode 100644
index 000000000000..ef943afbfb6a
--- /dev/null
+++ b/sysutils/osinfo-db-tools/files/patch-tools_osinfo-db-validate.c
@@ -0,0 +1,15 @@
+--- tools/osinfo-db-validate.c.orig 2023-10-27 14:08:20 UTC
++++ tools/osinfo-db-validate.c
+@@ -35,7 +35,12 @@ static void validate_structured_error_nop(void *userDa
+ }
+
+ static void validate_structured_error_nop(void *userData G_GNUC_UNUSED,
++#if LIBXML_VERSION >= 21200
++ const xmlError *error G_GNUC_UNUSED)
++#else
+ xmlErrorPtr error G_GNUC_UNUSED)
++#endif
++
+ {
+ if (error->file)
+ g_printerr("%s:%d %s", error->file, error->line, error->message);