Commit d2c45341e991531ad97cc33b293ae57708624f4a

Con Kolivas 2014-06-08T21:06:30

Fix no libcurl build

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;