On Sat, Jun 20, 2020 at 8:12 PM Andrii Nakryiko <andriin@xxxxxx> wrote: > > Systems that doesn't yet have the very latest linux/bpf.h header, enum > bpf_stats_type will be undefined, causing compilation warnings. Prevents this > by forward-declaring enum. > > Fixes: 0bee106716cf ("libbpf: Add support for command BPF_ENABLE_STATS") > Signed-off-by: Andrii Nakryiko <andriin@xxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx> Thanks for the fix!