mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-18 23:39:06 +08:00
It's expected that kernel UAPI headers have #ifndef guards starting with __LINUX prefix, while in the kernel source code these guards are actually starting with _UAPI__LINUX. The stripping of _UAPI prefix is done (among other things) by kernel's scripts/headers_install.sh script. Given libbpf vendors its own UAPI header under include/uapi subdir, and those "internal" UAPI headers are sometimes used by libbpf users for convenience, let's stick to the __LINUX prefix rule and do that during the sync. Signed-off-by: Andrii Nakryiko <andrii@kernel.org>