From: Florian Forster Date: Mon, 2 Jul 2007 14:00:23 +0000 (+0200) Subject: Merge branch 'pull/master' X-Git-Tag: collectd-4.1.0~40 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6d3dc246eb6ce32214825f909541cf7cbd441948;p=collectd.git Merge branch 'pull/master' Conflicts: src/memory.c --- 6d3dc246eb6ce32214825f909541cf7cbd441948 diff --cc src/memory.c index 47725a1c,47b3cb31..3fbd33fb --- a/src/memory.c +++ b/src/memory.c @@@ -43,17 -43,11 +43,11 @@@ # 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 defined(HOST_VM_INFO) +#if HAVE_HOST_STATISTICS static mach_port_t port_host; static vm_size_t pagesize; -/* #endif HOST_VM_INFO */ +/* #endif HAVE_HOST_STATISTICS */ #elif HAVE_SYSCTLBYNAME /* no global variables */ @@@ -66,15 -60,18 +60,18 @@@ #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 defined(HOST_VM_INFO) +#if HAVE_HOST_STATISTICS port_host = mach_host_self (); host_page_size (port_host, &pagesize); -/* #endif HOST_VM_INFO */ +/* #endif HAVE_HOST_STATISTICS */ #elif HAVE_SYSCTLBYNAME /* no init stuff */