ChatGPT taught me preprocessor __has_include

Опубликовано: 09 Август 2023
на канале: BPFire
14
0

When compile your eBPF C program, it may requires bpf_helpers.h from distro libbpf package installation, but if the distro does not have libbpf installed, you could to fall back bpf_helpers.h that can be shipped together with your C source code, but how do you do the fall back include, I asked ChatGPT...