ifdef out icarus options unused without icarus built in.
diff --git a/cgminer.c b/cgminer.c
index f301d6a..fd700b6 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -158,8 +158,10 @@ bool opt_api_network;
bool opt_delaynet;
bool opt_disable_pool;
static bool no_work;
+#ifdef USE_ICARUS
char *opt_icarus_options = NULL;
char *opt_icarus_timing = NULL;
+#endif
bool opt_worktime;
#ifdef USE_AVALON
char *opt_avalon_options = NULL;
@@ -4427,10 +4429,12 @@ void write_config(FILE *fcfg)
fprintf(fcfg, ",\n\"api-description\" : \"%s\"", json_escape(opt_api_description));
if (opt_api_groups)
fprintf(fcfg, ",\n\"api-groups\" : \"%s\"", json_escape(opt_api_groups));
+#ifdef USE_ICARUS
if (opt_icarus_options)
fprintf(fcfg, ",\n\"icarus-options\" : \"%s\"", json_escape(opt_icarus_options));
if (opt_icarus_timing)
fprintf(fcfg, ",\n\"icarus-timing\" : \"%s\"", json_escape(opt_icarus_timing));
+#endif
#ifdef USE_KLONDIKE
if (opt_klondike_options)
fprintf(fcfg, ",\n\"klondike-options\" : \"%s\"", json_escape(opt_klondike_options));