diff --git a/plugins/in_node_exporter_metrics/ne_processes.h b/plugins/in_node_exporter_metrics/ne_processes.h index 05514bd4bf0..d5108c868b2 100644 --- a/plugins/in_node_exporter_metrics/ne_processes.h +++ b/plugins/in_node_exporter_metrics/ne_processes.h @@ -22,8 +22,26 @@ #include "ne.h" +#ifdef __linux__ int ne_processes_init(struct flb_ne *ctx); int ne_processes_update(struct flb_ne *ctx); int ne_processes_exit(struct flb_ne *ctx); +#else +static int ne_processes_init(struct flb_ne *ctx) +{ + return 0; +} + +static int ne_processes_update(struct flb_ne *ctx) +{ + return 0; +} + +static int ne_processes_exit(struct flb_ne *ctx) +{ + return 0; +} + +#endif #endif