From 2fa6ec197f98760d859d14741b03f684558f4d7e Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sun, 9 Mar 2014 18:19:05 +0100 Subject: Cope with older libsoup as found in Debian Wheezy We can't use SOUP_CHECK_VERSION since this isn't available in 2.38. --- libplanfahr/providers/hafas-bin6.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libplanfahr/providers') diff --git a/libplanfahr/providers/hafas-bin6.c b/libplanfahr/providers/hafas-bin6.c index 83ca2e9..f72d79b 100644 --- a/libplanfahr/providers/hafas-bin6.c +++ b/libplanfahr/providers/hafas-bin6.c @@ -846,7 +846,11 @@ lpf_provider_hafas_bin6_activate (LpfProvider *self, GObject *obj) GFile *dir; gchar *debugstr; +#ifdef HAVE_SOUP_SESSION_NEW priv->session = soup_session_new(); +#else + priv->session = soup_session_async_new(); +#endif priv->logdir = g_build_path(G_DIR_SEPARATOR_S, g_get_user_cache_dir(), PACKAGE, -- cgit v1.2.3