diff options
Diffstat (limited to 'samples/bpf')
-rw-r--r-- | samples/bpf/libbpf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/samples/bpf/libbpf.h b/samples/bpf/libbpf.h index 58c5fe1bdba1..a6bb7e9c22c3 100644 --- a/samples/bpf/libbpf.h +++ b/samples/bpf/libbpf.h | |||
@@ -92,7 +92,9 @@ extern char bpf_log_buf[LOG_BUF_SIZE]; | |||
92 | .off = 0, \ | 92 | .off = 0, \ |
93 | .imm = ((__u64) (IMM)) >> 32 }) | 93 | .imm = ((__u64) (IMM)) >> 32 }) |
94 | 94 | ||
95 | #define BPF_PSEUDO_MAP_FD 1 | 95 | #ifndef BPF_PSEUDO_MAP_FD |
96 | # define BPF_PSEUDO_MAP_FD 1 | ||
97 | #endif | ||
96 | 98 | ||
97 | /* pseudo BPF_LD_IMM64 insn used to refer to process-local map_fd */ | 99 | /* pseudo BPF_LD_IMM64 insn used to refer to process-local map_fd */ |
98 | #define BPF_LD_MAP_FD(DST, MAP_FD) \ | 100 | #define BPF_LD_MAP_FD(DST, MAP_FD) \ |