[Spice-devel] [spice-gtk] Add missing #include "glib-compat.h"

Christophe Fergeau cfergeau at redhat.com
Wed Feb 26 09:30:26 PST 2014


wocky-http-proxy.c and vmcstream.c make use of functions that were
not available in glib 2.26 so we need fallback for them through
glib-compat.h or spice-gtk won't build with older glibs.
---
 gtk/vmcstream.c        | 1 +
 gtk/wocky-http-proxy.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gtk/vmcstream.c b/gtk/vmcstream.c
index 61990e7..8cef1b0 100644
--- a/gtk/vmcstream.c
+++ b/gtk/vmcstream.c
@@ -20,6 +20,7 @@
 #include "vmcstream.h"
 #include "spice-channel-priv.h"
 #include "gio-coroutine.h"
+#include "glib-compat.h"
 
 struct _SpiceVmcInputStream
 {
diff --git a/gtk/wocky-http-proxy.c b/gtk/wocky-http-proxy.c
index 4226b10..fa519ec 100644
--- a/gtk/wocky-http-proxy.c
+++ b/gtk/wocky-http-proxy.c
@@ -22,6 +22,7 @@
 
 #include "config.h"
 
+#include "glib-compat.h"
 #include "wocky-http-proxy.h"
 
 #include <string.h>
-- 
1.8.5.3



More information about the Spice-devel mailing list