From: Michael Stapelberg Date: Sun, 24 Jul 2011 21:17:34 +0000 (+0200) Subject: only compile print_cpu_temperature if THERMAL_ZONE is available X-Git-Tag: 2.4~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=319664ce43ee38885e053c1f73f565cb231d7516;p=i3%2Fi3status only compile print_cpu_temperature if THERMAL_ZONE is available Fixes FTBFS on hurd-i386 --- diff --git a/src/print_cpu_temperature.c b/src/print_cpu_temperature.c index 84f78e0..3bc4636 100644 --- a/src/print_cpu_temperature.c +++ b/src/print_cpu_temperature.c @@ -22,6 +22,7 @@ static char *thermal_zone; * */ void print_cpu_temperature_info(int zone, const char *path, const char *format) { +#ifdef THERMAL_ZONE const char *walk; static char buf[16]; @@ -59,4 +60,5 @@ void print_cpu_temperature_info(int zone, const char *path, const char *format) walk += strlen("degrees"); } } +#endif }