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_cpu_temperature.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/get_cpu_temperature.c') diff --git a/src/get_cpu_temperature.c b/src/get_cpu_temperature.c index ca6b9df..9eb55bb 100644 --- a/src/get_cpu_temperature.c +++ b/src/get_cpu_temperature.c @@ -5,7 +5,7 @@ #include "i3status.h" -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #include #include #include @@ -31,7 +31,7 @@ const char *get_cpu_temperature_info() { (void)snprintf(buf, sizeof(buf), "T: ? C"); else (void)snprintf(buf, sizeof(buf), "T: %ld C", (temp/1000)); -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) int sysctl_rslt; size_t sysctl_size = sizeof (sysctl_rslt); if (sysctlbyname(thermal_zone,&sysctl_rslt,&sysctl_size,NULL,0)) -- cgit v1.2.3