mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
df09767773
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>
14 lines
278 B
Plaintext
14 lines
278 B
Plaintext
dnl The libattr.so library
|
|
|
|
AC_DEFUN([LIBVIRT_ARG_ATTR],[
|
|
LIBVIRT_ARG_WITH_FEATURE([ATTR], [attr], [check])
|
|
])
|
|
|
|
AC_DEFUN([LIBVIRT_CHECK_ATTR],[
|
|
LIBVIRT_CHECK_LIB([ATTR], [attr], [getxattr], [sys/xattr.h])
|
|
])
|
|
|
|
AC_DEFUN([LIBVIRT_RESULT_ATTR],[
|
|
LIBVIRT_RESULT_LIB([ATTR])
|
|
])
|