From 97cb77d18a3ad46b179f5a967fef90f0e41005a7 Mon Sep 17 00:00:00 2001 From: Kano Date: Mon, 4 Mar 2013 14:06:15 +1100 Subject: [PATCH] curses - fix - put a dev_width inside #ifdef --- cgminer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgminer.c b/cgminer.c index 910bce5d..5300e1ea 100644 --- a/cgminer.c +++ b/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