Skip to content

Commit

Permalink
in_node_exporter_metrics: Fix macOS build (#8048)
Browse files Browse the repository at this point in the history
To build on macOS, we have to provide skeleton functions which are not
targeted OSes.

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored Oct 17, 2023
1 parent cfa197c commit b5c18d9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions plugins/in_node_exporter_metrics/ne_processes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b5c18d9

Please sign in to comment.