RHEL/CentOS 6 supports sys/xattr.h eliminating the need for
libattr-devel as a dependency.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: DHE <git@dehacked.net>
Closes #7344
Closes #7351
+++ /dev/null
-dnl #
-dnl # Check for libattr
-dnl #
-AC_DEFUN([ZFS_AC_CONFIG_USER_LIBATTR], [
- LIBATTR=
-
- AC_CHECK_HEADER([attr/xattr.h], [], [AC_MSG_FAILURE([
- *** attr/xattr.h missing, libattr-devel package required])])
-
- AC_SUBST([LIBATTR], ["-lattr"])
- AC_DEFINE([HAVE_LIBATTR], 1, [Define if you have libattr])
-])
ZFS_AC_CONFIG_USER_LIBUUID
ZFS_AC_CONFIG_USER_LIBTIRPC
ZFS_AC_CONFIG_USER_LIBBLKID
- ZFS_AC_CONFIG_USER_LIBATTR
ZFS_AC_CONFIG_USER_LIBUDEV
ZFS_AC_CONFIG_USER_LIBSSL
ZFS_AC_CONFIG_USER_RUNSTATEDIR
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>
#include <fcntl.h>
#include <time.h>
#include <unistd.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>