From 6194ec7e342025a750600baafe765cef2785a4e2 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 7 Feb 2011 14:42:17 +0100 Subject: [PATCH] swap plugin: Declare swap_submit_derive() only on Linux. --- src/swap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.30.2