Re: [PATCH 1/1] perf build: Fix up broken capstone feature detection fast path

From: Andi Kleen
Date: Thu Aug 15 2024 - 13:17:33 EST


On Thu, Aug 15, 2024 at 03:26:22AM +0000, duchangbin wrote:
> Hi, Arnaldo,
>
> How about workaround it by rename the 'bpf_insn' in capstione?
>
> Change test-libcapstone.c as:
>
> #define bpf_insn capstone_bpf_insn
> #include <capstone/capstone.h>
> #undef bpf_insn
>
> I haven't tried it but seems feasible.

Yes that seems like a better fix.

-Andi