[pacman-dev] [PATCH 1/2] Add missing header
Exposed when building with --without-libcurl Signed-off-by: Allan McRae <allan@archlinux.org> --- lib/libalpm/be_sync.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index feda6f5..bd68739 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -22,6 +22,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <limits.h> #include <unistd.h> /* libarchive */ -- 1.8.3.2
Signed-off-by: Allan McRae <allan@archlinux.org> --- lib/libalpm/dload.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index b759c78..342afbc 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -625,6 +625,9 @@ int _alpm_download(struct dload_payload *payload, const char *localpath, #ifdef HAVE_LIBCURL return curl_download_internal(payload, localpath, final_file, final_url); #else + /* work around unused warnings when building without libcurl */ + (void)final_file; + (void)final_url; RET_ERR(handle, ALPM_ERR_EXTERNAL_DOWNLOAD, -1); #endif } else { -- 1.8.3.2
participants (1)
-
Allan McRae