From 28f515e91d78c8e378ee190894e76e21aaa1ba72 Mon Sep 17 00:00:00 2001 From: Kano Date: Fri, 15 Mar 2013 06:22:22 +1100 Subject: [PATCH] nDevs required for -n with usb --- cgminer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 39bb11a9..7c1ff6a8 100644 --- a/cgminer.c +++ b/cgminer.c @@ -92,9 +92,11 @@ int opt_bench_algo = -1; static const bool opt_time = true; unsigned long long global_hashrate; +#if defined(HAVE_OPENCL) || defined(USE_USBUTILS) +int nDevs; +#endif #ifdef HAVE_OPENCL int opt_dynamic_interval = 7; -int nDevs; int opt_g_threads = 2; int gpu_threads; #ifdef USE_SCRYPT