summaryrefslogtreecommitdiff
path: root/tools/perf/util/bpf-prologue.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/bpf-prologue.h')
-rw-r--r--tools/perf/util/bpf-prologue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/bpf-prologue.h b/tools/perf/util/bpf-prologue.h
index d94cbea12899..ba564838375f 100644
--- a/tools/perf/util/bpf-prologue.h
+++ b/tools/perf/util/bpf-prologue.h
@@ -18,6 +18,8 @@ int bpf__gen_prologue(struct probe_trace_arg *args, int nargs,
struct bpf_insn *new_prog, size_t *new_cnt,
size_t cnt_space);
#else
+#include <errno.h>
+
static inline int
bpf__gen_prologue(struct probe_trace_arg *args __maybe_unused,
int nargs __maybe_unused,