diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-14 14:38:58 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-14 14:38:58 +0200 |
commit | 185cbb8a44d9e084580d6a9f4ca004c20ee90103 (patch) | |
tree | 23be8dc0f51623c59ccbd1545831858efb79f156 /lib/libalpm | |
parent | 5b5b250443ed416a2c2315c28a034501603cd003 (diff) | |
download | pacman-185cbb8a44d9e084580d6a9f4ca004c20ee90103.tar.gz pacman-185cbb8a44d9e084580d6a9f4ca004c20ee90103.tar.xz |
Add missing #ifdef around cURL error code in download struct
Thanks to Eduardo Tongson on the mailing list.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/dload.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/dload.h b/lib/libalpm/dload.h index 5442c0e2..f5f2cd9c 100644 --- a/lib/libalpm/dload.h +++ b/lib/libalpm/dload.h @@ -40,7 +40,9 @@ struct dload_payload { int allow_resume; int errors_ok; int unlink_on_fail; +#ifdef HAVE_LIBCURL CURLcode curlerr; /* last error produced by curl */ +#endif }; void _alpm_dload_payload_reset(struct dload_payload *payload); |