1From ced3c5d8cad0177b297666343f1561799dfefb0d Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Wed, 22 Nov 2023 18:49:10 -0800 4Subject: [PATCH] Fix build with libxml2-2.12.0 and clang-17 5 6Fixes build errors about missing function prototypes with clang-17 7 8Fixes 9| ../libsoup-2.74.3/libsoup/soup-xmlrpc-old.c:512:8: error: call to undeclared function 'xmlParseMemory'; ISO C99 and later do not support implicit function declarations 10 11Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/385] 12Signed-off-by: Khem Raj <raj.khem@gmail.com> 13--- 14 libsoup/soup-xmlrpc-old.c | 1 + 15 libsoup/soup-xmlrpc.c | 1 + 16 2 files changed, 2 insertions(+) 17 18diff --git a/libsoup/soup-xmlrpc-old.c b/libsoup/soup-xmlrpc-old.c 19index c57086b6..527e3b23 100644 20--- a/libsoup/soup-xmlrpc-old.c 21+++ b/libsoup/soup-xmlrpc-old.c 22@@ -11,6 +11,7 @@ 23 24 #include <string.h> 25 26+#include <libxml/parser.h> 27 #include <libxml/tree.h> 28 29 #include "soup-xmlrpc-old.h" 30diff --git a/libsoup/soup-xmlrpc.c b/libsoup/soup-xmlrpc.c 31index 42dcda9c..e991cbf0 100644 32--- a/libsoup/soup-xmlrpc.c 33+++ b/libsoup/soup-xmlrpc.c 34@@ -17,6 +17,7 @@ 35 36 #include <string.h> 37 #include <errno.h> 38+#include <libxml/parser.h> 39 #include <libxml/tree.h> 40 #include "soup-xmlrpc.h" 41 #include "soup.h" 42-- 432.43.0 44 45