diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2011-07-24 23:17:34 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2011-07-24 23:17:34 +0200 |
commit | 319664ce43ee38885e053c1f73f565cb231d7516 (patch) | |
tree | 10ff6de7a96232c2cb0defe007ecbfb8dd179e1a /src/print_cpu_temperature.c | |
parent | d87a735be568a144fd1ccd5628ef2a40fe094b07 (diff) |
only compile print_cpu_temperature if THERMAL_ZONE is available
Fixes FTBFS on hurd-i386
Diffstat (limited to 'src/print_cpu_temperature.c')
-rw-r--r-- | src/print_cpu_temperature.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 } |