From e565e313f79c78eb1be27ce6ea789011105cf549 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Mon, 31 Aug 2009 19:34:57 +0200 Subject: Support for (Debian) GNU/kFreeBSD --- src/get_battery_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/get_battery_info.c') diff --git a/src/get_battery_info.c b/src/get_battery_info.c index 41f2ff3..ee78706 100644 --- a/src/get_battery_info.c +++ b/src/get_battery_info.c @@ -5,7 +5,7 @@ #include "i3status.h" -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #include #include #endif @@ -92,7 +92,7 @@ const char *get_battery_info(struct battery *bat) { (status == CS_DISCHARGING ? "BAT" : "FULL")), (((float)remaining / (float)full_design) * 100)); } -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) int state; int sysctl_rslt; size_t sysctl_size = sizeof(sysctl_rslt); -- cgit v1.2.3