From 0fcb7a785deacbe80203533d8df0a2978e30c701 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 22 Jan 2024 22:02:44 +0100 Subject: [PATCH] disk plugin: Build `disk_submit_single` on Linux only. --- src/disk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/disk.c b/src/disk.c index c31ff8cc8e..5b1b8486c2 100644 --- a/src/disk.c +++ b/src/disk.c @@ -310,6 +310,7 @@ static int disk_shutdown(void) { return 0; } /* int disk_shutdown */ +#if KERNEL_LINUX static void disk_submit_single(const char *plugin_instance, const char *type, derive_t value) { value_list_t vl = VALUE_LIST_INIT; @@ -322,6 +323,7 @@ static void disk_submit_single(const char *plugin_instance, const char *type, plugin_dispatch_values(&vl); } /* void disk_submit_single */ +#endif static void disk_submit(const char *plugin_instance, const char *type, derive_t read, derive_t write) {