summaryrefslogtreecommitdiff
path: root/i3status.h
diff options
context:
space:
mode:
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 };