Re: [PATCH bpf-next 1/7] bpftool: Define _GNU_SOURCE only once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 6, 2022 at 6:44 AM Quentin Monnet <quentin@xxxxxxxxxxxxx> wrote:
>
> _GNU_SOURCE is defined in several source files for bpftool, but only one
> of them takes the precaution of checking whether the value is already
> defined. Add #ifndef for other occurrences too.
>
> This is in preparation for the support of disassembling JIT-ed programs
> with LLVM, with $(llvm-config --cflags) passing -D_GNU_SOURCE as a
> compilation argument.
>
> Signed-off-by: Quentin Monnet <quentin@xxxxxxxxxxxxx>

Acked-by: Song Liu <song@xxxxxxxxxx>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux