From ea3a9effca9bebfe18bfb7546da619ecbbb121f3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 09:41:22 -0500 Subject: Apply build fixes --- src/lmsensor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lmsensor.h') diff --git a/src/lmsensor.h b/src/lmsensor.h index 704f2fe..87250e0 100644 --- a/src/lmsensor.h +++ b/src/lmsensor.h @@ -51,7 +51,11 @@ protected: double calculateIdealValue(); +#if SENSORS_API_VERSION < 0x400 /* libsensor 3 code */ bool init(const sensors_feature_data **data, int *nr1,int *nr2); +#else + bool init(const sensors_feature **data, int *nr1,int *nr2); +#endif const sensors_chip_name *getChipName(); private: -- cgit v1.2.1