summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/dload.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 4b4d8dff..b93182f3 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -42,10 +42,6 @@
#include "util.h"
#include "handle.h"
-#ifdef HAVE_LIBCURL
-static double prevprogress; /* last download amount */
-#endif
-
static const char *get_filename(const char *url)
{
char *filename = strrchr(url, '/');
@@ -56,6 +52,8 @@ static const char *get_filename(const char *url)
}
#ifdef HAVE_LIBCURL
+static double prevprogress; /* last download amount */
+
static char *get_fullpath(const char *path, const char *filename,
const char *suffix)
{