[Buildroot] [PATCH 2/4] libcap: add patch to fix build issue with old kernel headers

Peter Korsgaard peter at korsgaard.com
Wed Mar 16 22:16:31 UTC 2016


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > Old kernels (before 2.6.36) were defining XATTR_NAME_CAPS in
 > <linux/capability.h>, but using XATTR_SECURITY_PREFIX and
 > XATTR_CAPS_SUFFIX which were defined in the kernel-only part of
 > <linux/xattr.h>.

gcc10 (which uses 2.6.32 headers) has XATTR_CAPS_SUFFIX in
linux/capability.h:

#define XATTR_CAPS_SUFFIX "capability"
#define XATTR_NAME_CAPS XATTR_SECURITY_PREFIX XATTR_CAPS_SUFFIX

So this doesn't seem 100% correct, but the fix looks fine to me - So
committed, thanks!

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list