was only compiling on NetBSD anymore
This commit is contained in:
parent
f540bbef2e
commit
1147804831
|
@ -106,8 +106,10 @@ static void _battery_destroy(PanelApplet * applet)
|
||||||
Battery * battery = applet->priv;
|
Battery * battery = applet->priv;
|
||||||
|
|
||||||
g_source_remove(battery->timeout);
|
g_source_remove(battery->timeout);
|
||||||
|
#ifdef __NetBSD__
|
||||||
if(battery->fd != -1)
|
if(battery->fd != -1)
|
||||||
close(battery->fd);
|
close(battery->fd);
|
||||||
|
#endif
|
||||||
free(battery);
|
free(battery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user