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>
This commit is contained in:
Dan McGee 2011-10-14 07:38:58 -05:00
parent 5b5b250443
commit 185cbb8a44
1 changed files with 2 additions and 0 deletions

View File

@ -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);