From 1147804831b558a859995b008df8df63d68ba9f3 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 25 Aug 2009 23:22:21 +0000 Subject: [PATCH] was only compiling on NetBSD anymore --- src/applets/battery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/applets/battery.c b/src/applets/battery.c index 1061fe1..949b7fa 100644 --- a/src/applets/battery.c +++ b/src/applets/battery.c @@ -106,8 +106,10 @@ static void _battery_destroy(PanelApplet * applet) Battery * battery = applet->priv; g_source_remove(battery->timeout); +#ifdef __NetBSD__ if(battery->fd != -1) close(battery->fd); +#endif free(battery); }