From ae4454f20821ef5cdbb350e18c4aaa83982882c4 Mon Sep 17 00:00:00 2001 From: "Spooky85@gmail.com" Date: Mon, 2 Nov 2009 22:16:09 +0000 Subject: [PATCH] Fix undefined reference to `cleanup_battery' when using --disable-battery. git-svn-id: http://tint2.googlecode.com/svn/trunk@248 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 5a62704..f7e6d60 100644 --- a/src/config.c +++ b/src/config.c @@ -73,7 +73,9 @@ void init_config() // tint2 could reload config, so we cleanup objects cleanup_systray(); +#ifdef ENABLE_BATTERY cleanup_battery(); +#endif cleanup_clock(); cleanup_tooltip();