X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemory.c;h=3fbd33fb0c1da1a90cb666e1e6df044a711a2f64;hb=4320ac5ec142c87bcf634cd85b89eadea65011ff;hp=47725a1c05bd3d09b2b9f381ea4d8f455f408ad9;hpb=e2df20972ce0692d20479caea66b894edb5cc1b7;p=collectd.git diff --git a/src/memory.c b/src/memory.c index 47725a1c..3fbd33fb 100644 --- a/src/memory.c +++ b/src/memory.c @@ -43,12 +43,6 @@ # include #endif -#if HAVE_HOST_STATISTICS || HAVE_SYSCTLBYNAME || KERNEL_LINUX || HAVE_LIBKSTAT -# define MEMORY_HAVE_READ 1 -#else -# define MEMORY_HAVE_READ 0 -#endif - /* vm_statistics_data_t */ #if HAVE_HOST_STATISTICS static mach_port_t port_host; @@ -66,9 +60,12 @@ static vm_size_t pagesize; #elif HAVE_LIBKSTAT static int pagesize; static kstat_t *ksp; -#endif /* HAVE_LIBKSTAT */ +/* #endif HAVE_LIBKSTAT */ + +#else +# error "No applicable input method." +#endif -#if MEMORY_HAVE_READ static int memory_init (void) { #if HAVE_HOST_STATISTICS @@ -321,12 +318,9 @@ static int memory_read (void) return (0); } -#endif /* MEMORY_HAVE_READ */ void module_register (void) { -#if MEMORY_HAVE_READ plugin_register_init ("memory", memory_init); plugin_register_read ("memory", memory_read); -#endif /* MEMORY_HAVE_READ */ } /* void module_register */