openscap/openscap-xattr.patch

27 lines
1.3 KiB
Diff

Index: openscap-1.2.17/configure.ac
===================================================================
--- openscap-1.2.17.orig/configure.ac
+++ openscap-1.2.17/configure.ac
@@ -476,7 +476,7 @@ AC_CHECK_HEADERS([acl/libacl.h sys/acl.h
echo
echo ' * Checking presence of required headers for the fileextendedattribute probe'
-AC_CHECK_HEADERS([attr/xattr.h errno.h limits.h pthread.h stdlib.h string.h sys/stat.h sys/types.h ],[],[probe_fileextendedattribute_req_deps_ok=no; probe_fileextendedattribute_req_deps_missing='header files'],[-])
+AC_CHECK_HEADERS([attr/libattr.h errno.h limits.h pthread.h stdlib.h string.h sys/stat.h sys/types.h ],[],[probe_fileextendedattribute_req_deps_ok=no; probe_fileextendedattribute_req_deps_missing='header files'],[-])
echo
echo ' * Checking presence of required headers for the password probe'
Index: openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c
===================================================================
--- openscap-1.2.17.orig/src/OVAL/probes/unix/fileextendedattribute.c
+++ openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c
@@ -41,7 +41,7 @@
#include <limits.h>
#include <sys/types.h>
-#include <attr/xattr.h>
+#include <attr/libattr.h>
#include <probe/probe.h>
#include <probe/option.h>