]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix include for xattr.h
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 3 Aug 2018 14:35:53 +0000 (16:35 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 6 Aug 2018 09:50:53 +0000 (11:50 +0200)
commitdf09767773b5640f0ea68065092d22b484f21ce4
tree5b704f64dd3b9b9e102a6d5bf0fca1ece8b8a1b2
parent1f8be8ec80309c8901a7b8d41d2507bd4472943e
Fix include for xattr.h

The proper file that should be included is `sys/xattr.h` as that comes from
`glibc` and not `attr/xattr.h` which ships with the `attr` utility.

We're most probably not the only ones because `attr/xattr.h` added a #warning to
their include resulting in the following compilation errors:

In file included from securityselinuxlabeltest.c:31:0:
/usr/include/attr/xattr.h:5:2: error: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Werror=cpp]
 #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
  ^~~~~~~

In file included from securityselinuxhelper.c:37:0:
/usr/include/attr/xattr.h:5:2: error: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Werror=cpp]
 #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
  ^~~~~~~

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
m4/virt-attr.m4
tests/securityselinuxhelper.c
tests/securityselinuxlabeltest.c