From d9d566d12cd85b509a8bbc74143e94812ed854d0 Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Mon, 2 Nov 2009 22:16:09 +0000 Subject: [PATCH] Fix undefined reference to `cleanup_battery' when using --disable-battery. --- 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(); -- 2.44.0