summaryrefslogtreecommitdiff
path: root/i3status.h
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2009-08-31 19:34:57 +0200
committerMichael Stapelberg <michael@stapelberg.de>2009-09-01 12:39:49 +0200
commite565e313f79c78eb1be27ce6ea789011105cf549 (patch)
treedf19e857cc3320392b60077a71ea3a9d42d9939e /i3status.h
parent39b153fdd100088b567130a354824ef49b190009 (diff)
Support for (Debian) GNU/kFreeBSD
Diffstat (limited to 'i3status.h')
-rw-r--r--i3status.h9
1 files changed, 8 insertions, 1 deletions
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 <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 };