Browse Source

curses - fix - put a dev_width inside #ifdef

Kano 13 years ago
parent
commit
97cb77d18a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cgminer.c

+ 2 - 0
cgminer.c

@@ -6715,7 +6715,9 @@ void enable_device(struct cgpu_info *cgpu)
 	mutex_unlock(&devices_lock);
 	if (hotplug_mode) {
 		new_threads += cgpu->threads;
+#ifdef HAVE_CURSES
 		adj_width(mining_threads + new_threads, &dev_width);
+#endif
 	} else {
 		mining_threads += cgpu->threads;
 #ifdef HAVE_CURSES