From: Florian Forster Date: Mon, 7 Feb 2011 13:42:17 +0000 (+0100) Subject: swap plugin: Declare swap_submit_derive() only on Linux. X-Git-Tag: collectd-5.1.0~75 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6194ec7e342025a750600baafe765cef2785a4e2;p=collectd.git swap plugin: Declare swap_submit_derive() only on Linux. --- diff --git a/src/swap.c b/src/swap.c index a20087dd..397969ef 100644 --- a/src/swap.c +++ b/src/swap.c @@ -205,6 +205,7 @@ static void swap_submit_gauge (const char *plugin_instance, /* {{{ */ swap_submit (plugin_instance, "swap", type_instance, v); } /* }}} void swap_submit_gauge */ +#if KERNEL_LINUX static void swap_submit_derive (const char *plugin_instance, /* {{{ */ const char *type_instance, derive_t value) { @@ -214,8 +215,6 @@ static void swap_submit_derive (const char *plugin_instance, /* {{{ */ swap_submit (plugin_instance, "swap_io", type_instance, v); } /* }}} void swap_submit_derive */ - -#if KERNEL_LINUX static int swap_read_separate (void) /* {{{ */ { FILE *fh;