diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2021-01-16 08:21:00 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-01-19 03:39:10 +0100 |
commit | 79227dabe07c43b5a208696312a42b00a328398d (patch) | |
tree | 4b7f6dfc928d3662a79d3079d327e5289d13a7cf /lib/libalpm/handle.h | |
parent | 8ed98023b45d1cdea4217f7152dcdc77944a0ea7 (diff) | |
download | pacman-79227dabe07c43b5a208696312a42b00a328398d.tar.gz pacman-79227dabe07c43b5a208696312a42b00a328398d.tar.xz |
make alpm download config accessible without curl
Download-related config options are currently limited to builds with
curl. This causes compilation errors when those options are used
without an appropriate guard which often goes unnoticed because we all
use curl. Front-ends providing their own download callback may also
want to use these settings.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.h')
-rw-r--r-- | lib/libalpm/handle.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h index 9fef0fbf..3e7d323e 100644 --- a/lib/libalpm/handle.h +++ b/lib/libalpm/handle.h @@ -60,9 +60,10 @@ struct __alpm_handle_t { #ifdef HAVE_LIBCURL /* libcurl handle */ CURLM *curlm; +#endif + unsigned short disable_dl_timeout; unsigned int parallel_downloads; /* number of download streams */ -#endif #ifdef HAVE_LIBGPGME alpm_list_t *known_keys; /* keys verified to be in our keychain */ |