Fix no libcurl build
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
diff --git a/cgminer.c b/cgminer.c
index 63a9b07..e0abab2 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -131,8 +131,11 @@ enum benchwork {
BENCHWORK_NONCETIME,
BENCHWORK_COUNT
};
+
+#ifdef HAVE_LIBCURL
static char *opt_btc_address;
static char *opt_btc_sig;
+#endif
static char *opt_benchfile;
static bool opt_benchfile_display;
static FILE *benchfile_in;
@@ -3834,6 +3837,13 @@ static void sighandler(int __maybe_unused sig)
kill_work();
}
+static void _stage_work(struct work *work);
+
+#define stage_work(WORK) do { \
+ _stage_work(WORK); \
+ WORK = NULL; \
+} while (0)
+
#ifdef HAVE_LIBCURL
/* Called with pool_lock held. Recruit an extra curl if none are available for
* this pool. */
@@ -4020,13 +4030,6 @@ struct work *make_clone(struct work *work)
return work_clone;
}
-static void _stage_work(struct work *work);
-
-#define stage_work(WORK) do { \
- _stage_work(WORK); \
- WORK = NULL; \
-} while (0)
-
static bool clone_available(void)
{
struct work *work_clone = NULL, *work, *tmp;