]> git.sur5r.net Git - i3/i3status/commitdiff
only compile print_cpu_temperature if THERMAL_ZONE is available
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 24 Jul 2011 21:17:34 +0000 (23:17 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 24 Jul 2011 21:17:34 +0000 (23:17 +0200)
Fixes FTBFS on hurd-i386

src/print_cpu_temperature.c

index 84f78e0269cf481ba76350bf67987094e0ede2e9..3bc4636f5926d1c90c0c6b5bf209945b8ca4c92a 100644 (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
 }