diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2009-08-31 19:34:57 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-09-01 12:39:49 +0200 |
commit | e565e313f79c78eb1be27ce6ea789011105cf549 (patch) | |
tree | df19e857cc3320392b60077a71ea3a9d42d9939e /i3status.h | |
parent | 39b153fdd100088b567130a354824ef49b190009 (diff) |
Support for (Debian) GNU/kFreeBSD
Diffstat (limited to 'i3status.h')
-rw-r--r-- | i3status.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 <sys/stat.h> +#include <sys/param.h> + +#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 }; |