Commit 8bc7d1c9a0c8f74d20f8f739f648955b618eff52

Con Kolivas 2012-07-05T08:59:09

Only try to adjust dev width when curses is built in.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 34612f9..29ffc38 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4979,7 +4979,9 @@ void enable_device(struct cgpu_info *cgpu)
 	cgpu->deven = DEV_ENABLED;
 	devices[cgpu->cgminer_id = cgminer_id_count++] = cgpu;
 	mining_threads += cgpu->threads;
+#ifdef HAVE_CURSES
 	adj_width(mining_threads, &dev_width);
+#endif
 #ifdef HAVE_OPENCL
 	if (cgpu->api == &opencl_api) {
 		gpu_threads += cgpu->threads;