From 9044806c2adc6118399349c70a6c5746cedcc374 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 3 Mar 2024 07:10:14 +0000 Subject: Support building without gnutls Once in a generation, it may be necessary to bootstrap apt in an environment where gnutls is not yet available. This makes gnutls support in apt optional. You may also want a configure flag to force gnutls to be required from outside the buildsystem (e.g. debian/rules). --- methods/connect.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'methods/connect.cc') diff --git a/methods/connect.cc b/methods/connect.cc index 110f2fc75..f3e199d0a 100644 --- a/methods/connect.cc +++ b/methods/connect.cc @@ -19,8 +19,10 @@ #include #include +#ifdef HAVE_GNUTLS #include #include +#endif #include #include @@ -798,7 +800,8 @@ ResultState UnwrapSocks(std::string Host, int Port, URI Proxy, std::unique_ptr &Fd, return ResultState::SUCCESSFUL; } - /*}}}*/ +#endif /*}}}*/ -- cgit v1.2.3-70-g09d2