[Spice-devel] [spice-gtk 1/2] Don't try to call _wocky_http_proxy_get_type with old gio

Christophe Fergeau cfergeau at redhat.com
Wed Feb 27 05:44:39 PST 2013


Proxy support is only built when gio is newer than 2.26, don't try
to call symbols from wocky-http.c with older glib as this would
result in link failures.
---
 gtk/spice-session.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index ccc9367..615b653 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -652,7 +652,9 @@ static void spice_session_class_init(SpiceSessionClass *klass)
 {
     GObjectClass *gobject_class = G_OBJECT_CLASS(klass);
 
+#if GLIB_CHECK_VERSION(2, 26, 0)
     _wocky_http_proxy_get_type();
+#endif
 
     gobject_class->dispose      = spice_session_dispose;
     gobject_class->finalize     = spice_session_finalize;
-- 
1.8.1.2



More information about the Spice-devel mailing list