[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:44:19 UTC 2016
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:
> Peter,
> On Wed, 16 Mar 2016 23:16:31 +0100, Peter Korsgaard wrote:
>> > 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
> My commit log is talking about XATTR_SECURITY_PREFIX, not
> XATTR_CAPS_SUFFIX.
Well, you wrote ".. but using XATTR_SECURITY_PREFIX and
XATTR_CAPS_SUFFIX which were defined in the kernel-only part of
<linux/xattr.h>"
> Do you have XATTR_SECURITY_PREFIX defined ?
No, indeed not.
> I do have XATTR_CAPS_SUFFIX like you, but not XATTR_SECURITY_PREFIX.
Ok.
--
Venlig hilsen,
Peter Korsgaard
More information about the buildroot
mailing list