summaryrefslogtreecommitdiff
path: root/src/print_cpu_temperature.c
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2019-01-23 08:56:40 +0100
committerGitHub <noreply@github.com>2019-01-23 08:56:40 +0100
commita57cdc84e2f38ea99fd464d8b5b6446c769cc545 (patch)
tree48ba736e56b8212d2c3e47cce83864d798e2fa46 /src/print_cpu_temperature.c
parent7efbeeaf6ce9232f7479f76c1c79ff73c0db49e4 (diff)
Switch to autotools (#316)
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;