From 319664ce43ee38885e053c1f73f565cb231d7516 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 24 Jul 2011 23:17:34 +0200 Subject: [PATCH] only compile print_cpu_temperature if THERMAL_ZONE is available Fixes FTBFS on hurd-i386 --- src/print_cpu_temperature.c | 2 ++ 1 file changed, 2 insertions(+) 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 } -- 2.39.5