[evolution-activesync] Fix build with libxml2 >= 2.9.0
- From: David Woodhouse <dwmw2 src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-activesync] Fix build with libxml2 >= 2.9.0
- Date: Wed, 8 May 2013 13:15:50 +0000 (UTC)
commit bba710d9ba3d5eceb9cbb6fea80e9803f215fd14
Author: David Woodhouse <David Woodhouse intel com>
Date: Wed May 8 13:57:44 2013 +0100
Fix build with libxml2 >= 2.9.0
https://mail.gnome.org/archives/xml/2012-August/msg00005.html
eas-daemon/libeas/eas-connection.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/eas-daemon/libeas/eas-connection.c b/eas-daemon/libeas/eas-connection.c
index 1d52b08..4e6c8fb 100644
--- a/eas-daemon/libeas/eas-connection.c
+++ b/eas-daemon/libeas/eas-connection.c
@@ -1658,8 +1658,13 @@ autodiscover_as_soup_msg (gchar *url, xmlOutputBuffer *buf)
soup_message_set_request (msg,
"text/xml",
SOUP_MEMORY_COPY,
+#ifdef LIBXML2_NEW_BUFFER
+ (gchar *) xmlOutputBufferGetContent(buf),
+ xmlOutputBufferGetSize(buf));
+#else
(gchar*) buf->buffer->content,
buf->buffer->use);
+#endif
g_debug ("autodiscover_as_soup_msg--");
return msg;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]