summaryrefslogtreecommitdiff
path: root/src/print_cpu_temperature.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print_cpu_temperature.c')
-rw-r--r--src/print_cpu_temperature.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/print_cpu_temperature.c b/src/print_cpu_temperature.c
index 569ea60..01744a1 100644
--- a/src/print_cpu_temperature.c
+++ b/src/print_cpu_temperature.c
@@ -1,4 +1,5 @@
// vim:ts=4:sw=4:expandtab
+#include <config.h>
#include <stdlib.h>
#include <limits.h>
#include <glob.h>
@@ -52,7 +53,7 @@ typedef struct temperature_s {
#define ERROR_CODE 1
static int read_temperature(char *thermal_zone, temperature_t *temperature) {
-#if defined(LINUX)
+#if defined(__linux__)
static char buf[16];
long int temp;