X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fapple_sensors.c;h=2726ad2efdb6fc550e05163814e4c2f9c2d49557;hb=747f853a2ce3f8a55438aff274df5ea25a3e9cce;hp=848c212aa4c06062d42c612d1f4a93cb97917e3e;hpb=c493010e9f1a6537dca21be2290bc28051ad0efc;p=collectd.git diff --git a/src/apple_sensors.c b/src/apple_sensors.c index 848c212a..2726ad2e 100644 --- a/src/apple_sensors.c +++ b/src/apple_sensors.c @@ -49,17 +49,8 @@ # include #endif -#if HAVE_IOKIT_IOKITLIB_H -# define IOKIT_HAVE_READ 1 -#else -# define IOKIT_HAVE_READ 0 -#endif - -#if HAVE_IOKIT_IOKITLIB_H static mach_port_t io_master_port = MACH_PORT_NULL; -#endif -#if IOKIT_HAVE_READ static int as_init (void) { kern_return_t status; @@ -240,15 +231,9 @@ static int as_read (void) return (0); } /* int as_read */ -#endif /* IOKIT_HAVE_READ */ void module_register (void) { -#if IOKIT_HAVE_READ - if (load & MR_READ) - { - plugin_register_init ("apple_sensors", as_init); - plugin_register_read ("apple_sensors", as_read); - } -#endif /* IOKIT_HAVE_READ */ + plugin_register_init ("apple_sensors", as_init); + plugin_register_read ("apple_sensors", as_read); } /* void module_register */