From 441c03ba9ee86d025c7db38c05d22b8ad41d1459 Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Thu, 12 May 2016 14:42:38 +0200 Subject: [PATCH] Fix build when have_libsoup_client_certs=no This fixes a build failure with older libsoup versions that do not have the client certificates feature. Closes: #294 Approved by: cgwalters --- src/libostree/ostree-fetcher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libostree/ostree-fetcher.c b/src/libostree/ostree-fetcher.c index 6a75ad59..91b419a5 100644 --- a/src/libostree/ostree-fetcher.c +++ b/src/libostree/ostree-fetcher.c @@ -273,6 +273,7 @@ session_thread_set_proxy_cb (ThreadClosure *thread_closure, proxy_uri, NULL); } +#ifdef HAVE_LIBSOUP_CLIENT_CERTS static void session_thread_set_tls_interaction_cb (ThreadClosure *thread_closure, gpointer data) @@ -288,6 +289,7 @@ session_thread_set_tls_interaction_cb (ThreadClosure *thread_closure, SOUP_SESSION_TLS_INTERACTION, interaction, NULL); } +#endif static void session_thread_set_tls_database_cb (ThreadClosure *thread_closure,