From: Lubo¹ Stanìk Date: Tue, 5 Dec 2006 15:15:55 +0000 (+0100) Subject: sensors plugin: SENSORS_HAVE_READ unification X-Git-Tag: collectd-3.11.0~26^2~5^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=89639fdb172a40afe7fd9843765cd16790ecfcb1;p=collectd.git sensors plugin: SENSORS_HAVE_READ unification Signed-off-by: Stanek Lubos --- diff --git a/src/sensors.c b/src/sensors.c index 7cf787c7..c1b7d4b5 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -178,7 +178,7 @@ static ignorelist_t *sensor_list; */ static int sensor_extended_naming = 0; -#ifdef HAVE_LIBSENSORS +#if SENSORS_HAVE_READ typedef struct featurelist { const sensors_chip_name *chip; @@ -188,7 +188,7 @@ typedef struct featurelist } featurelist_t; featurelist_t *first_feature = NULL; -#endif /* defined (HAVE_LIBSENSORS) */ +#endif /* if SENSORS_HAVE_READ */ static int sensors_config (char *key, char *value) { @@ -230,7 +230,7 @@ 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; @@ -330,7 +330,7 @@ static void collectd_sensors_init (void) if (first_feature == NULL) sensors_cleanup (); -#endif /* defined(HAVE_LIBSENSORS) */ +#endif /* if SENSORS_HAVE_READ */ return; }