From 89c833806790fa8fad0e4ac0bbc27cfb93deaaeb Mon Sep 17 00:00:00 2001 From: o9000 Date: Wed, 4 Feb 2015 22:31:44 +0000 Subject: [PATCH] Fix issue 428: Build fails when battery applet is disabled from cmake git-svn-id: http://tint2.googlecode.com/svn/trunk@684 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/config.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config.c b/src/config.c index 8b000bf..7a8c2de 100644 --- a/src/config.c +++ b/src/config.c @@ -694,6 +694,7 @@ void add_entry (char *key, char *value) } } } +#ifdef ENABLE_BATTERY else if (strcmp(key, "battery") == 0) { if (new_config_file == 0) { battery_enabled = atoi(value); @@ -708,6 +709,7 @@ void add_entry (char *key, char *value) } } } +#endif else fprintf(stderr, "tint2 : invalid option \"%s\",\n upgrade tint2 or correct your config file\n", key);