From b76eaf187a313c99fe008b069b8123b299752589 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 1 Dec 2020 13:59:19 +0100 Subject: Dynamically load libsensors at runtime --- DisplayOptionsPanel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DisplayOptionsPanel.c') diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c index bf3fa584..e0d4cfd8 100644 --- a/DisplayOptionsPanel.c +++ b/DisplayOptionsPanel.c @@ -116,8 +116,8 @@ DisplayOptionsPanel* DisplayOptionsPanel_new(Settings* settings, ScreenManager* Panel_add(super, (Object*) CheckItem_newByRef("Add guest time in CPU meter percentage", &(settings->accountGuestInCPUMeter))); Panel_add(super, (Object*) CheckItem_newByRef("Also show CPU percentage numerically", &(settings->showCPUUsage))); Panel_add(super, (Object*) CheckItem_newByRef("Also show CPU frequency", &(settings->showCPUFrequency))); - #ifdef HAVE_LIBSENSORS - Panel_add(super, (Object*) CheckItem_newByRef("Also show CPU temperature", &(settings->showCPUTemperature))); + #ifdef HAVE_SENSORS_SENSORS_H + Panel_add(super, (Object*) CheckItem_newByRef("Also show CPU temperature (requires libsensors)", &(settings->showCPUTemperature))); Panel_add(super, (Object*) CheckItem_newByRef("- Show temperature in degree Fahrenheit instead of Celsius", &(settings->degreeFahrenheit))); #endif Panel_add(super, (Object*) CheckItem_newByRef("Enable the mouse", &(settings->enableMouse))); -- cgit v1.2.3