blob: 56c272aad3c67edb439d33319bb2c787bec09fd5 [file] [log] [blame]
From b1170cacff24cdfd3858edc2285c51cadef11488 Mon Sep 17 00:00:00 2001
From: Jan Tojnar <jtojnar@gmail.com>
Date: Sun, 10 Dec 2023 21:52:05 +0100
Subject: [PATCH] xml: Fix compatibility with libxml 2.12
libxml 2.12.0 reorganized includes, resulting in the following no longer being in scope:
- XML_PARSE_DTDVALID
- xmlReadMemory
- xmlReadFile
- xmlCleanupParser
Signed-off-by: Jan Tojnar <jtojnar@gmail.com>
(cherry picked from commit bb688d04294dda45e68dfaf13e3bc1187841e52a)
Upstream: https://github.com/analogdevicesinc/libiio/commit/b1170cacff24cdfd3858edc2285c51cadef11488
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
xml.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xml.c b/xml.c
index 33f026103..3eaed92b3 100644
--- a/xml.c
+++ b/xml.c
@@ -10,6 +10,7 @@
#include "iio-private.h"
#include <errno.h>
+#include <libxml/parser.h>
#include <libxml/tree.h>
#include <string.h>