X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fhddtemp.c;h=0432de73adc825c9ac161bc3ea5dc5a5800f68a9;hb=79e5cac135349c56f26cd437dff6f865b8c4e949;hp=c77746589858cef0941934727d336c9b12ce9514;hpb=5a8e0d71e65d6d16934401d581f42c0f033bca0f;p=collectd.git diff --git a/src/hddtemp.c b/src/hddtemp.c index c7774658..0432de73 100644 --- a/src/hddtemp.c +++ b/src/hddtemp.c @@ -31,17 +31,11 @@ #include "plugin.h" #include "configfile.h" -#if HAVE_NETDB_H && HAVE_SYS_SOCKET_H && HAVE_NETINET_IN_H \ - && HAVE_NETINET_TCP_H && HAVE_LIBGEN_H # include # include # include # include # include /* for basename */ -# define HDDTEMP_HAVE_READ 1 -#else -# define HDDTEMP_HAVE_READ 0 -#endif #if HAVE_LINUX_MAJOR_H # include @@ -50,7 +44,6 @@ #define HDDTEMP_DEF_HOST "127.0.0.1" #define HDDTEMP_DEF_PORT "7634" -#if HDDTEMP_HAVE_READ static const char *config_keys[] = { "Host", @@ -507,16 +500,13 @@ static int hddtemp_read (void) return (0); } /* int hddtemp_read */ -#endif /* HDDTEMP_HAVE_READ */ /* module_register Register collectd plugin. */ void module_register (void) { -#if HDDTEMP_HAVE_READ plugin_register_config ("hddtemp", hddtemp_config, config_keys, config_keys_num); plugin_register_init ("hddtemp", hddtemp_init); plugin_register_read ("hddtemp", hddtemp_read); -#endif /* HDDTEMP_HAVE_READ */ }