From 185cbb8a44d9e084580d6a9f4ca004c20ee90103 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 14 Oct 2011 07:38:58 -0500 Subject: Add missing #ifdef around cURL error code in download struct Thanks to Eduardo Tongson on the mailing list. Signed-off-by: Dan McGee --- lib/libalpm/dload.h | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3-70-g09d2