summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 717eec3)
raw | patch | inline | side by side (parent: 717eec3)
author | Lubo¹ Stanìk <kolektor@atlas.cz> | |
Tue, 5 Dec 2006 15:15:55 +0000 (16:15 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 5 Dec 2006 17:04:17 +0000 (18:04 +0100) |
Signed-off-by: Stanek Lubos <kolektor@atlas.cz>
src/sensors.c | patch | blob | history |
diff --git a/src/sensors.c b/src/sensors.c
index 7cf787c7a8b155b9a74f1398a2e4c550f42372bc..c1b7d4b558dbbe5ac90dc6b94a25a935890f2009 100644 (file)
--- a/src/sensors.c
+++ b/src/sensors.c
*/
static int sensor_extended_naming = 0;
-#ifdef HAVE_LIBSENSORS
+#if SENSORS_HAVE_READ
typedef struct featurelist
{
const sensors_chip_name *chip;
} featurelist_t;
featurelist_t *first_feature = NULL;
-#endif /* defined (HAVE_LIBSENSORS) */
+#endif /* if SENSORS_HAVE_READ */
static int sensors_config (char *key, char *value)
{
static void collectd_sensors_init (void)
{
-#ifdef HAVE_LIBSENSORS
+#if SENSORS_HAVE_READ
FILE *fh;
featurelist_t *last_feature = NULL;
featurelist_t *new_feature;
if (first_feature == NULL)
sensors_cleanup ();
-#endif /* defined(HAVE_LIBSENSORS) */
+#endif /* if SENSORS_HAVE_READ */
return;
}