only compile print_cpu_temperature if THERMAL_ZONE is available

Fixes FTBFS on hurd-i386
This commit is contained in:
Michael Stapelberg 2011-07-24 23:17:34 +02:00
parent d87a735be5
commit 319664ce43

View File

@ -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
}