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

Marc-André Lureau marcandre.lureau at gmail.com
Wed Feb 27 05:47:28 PST 2013


ack

On Wed, Feb 27, 2013 at 2:44 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel



-- 
Marc-André Lureau


More information about the Spice-devel mailing list