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 --- i3status.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'i3status.h') diff --git a/i3status.h b/i3status.h index 73221a5..81a52a0 100644 --- a/i3status.h +++ b/i3status.h @@ -28,7 +28,7 @@ #define THERMAL_ZONE "/sys/class/thermal/thermal_zone%d/temp" -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #define THERMAL_ZONE "hw.acpi.thermal.tz%d.temperature" #define BATT_LIFE "hw.acpi.battery.life" @@ -37,6 +37,13 @@ #endif +#if defined(__FreeBSD_kernel__) && defined(__GLIBC__) + +#include +#include + +#endif + typedef enum { CS_DISCHARGING, CS_CHARGING, CS_FULL } charging_status_t; enum { ORDER_RUN, ORDER_WLAN, ORDER_ETH, ORDER_BATTERY, ORDER_CPU_TEMPERATURE, ORDER_LOAD, ORDER_TIME, ORDER_IPV6, MAX_ORDER }; -- cgit v1.2.3