From: Darrick J. Wong Date: Thu, 28 Mar 2019 23:04:51 +0000 (-0500) Subject: configure: use sys/xattr.h for fsetxattr detection X-Git-Tag: v5.0.0-rc1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5629402f53e421d1fcade4f04c36a7b38d3a52e;p=thirdparty%2Fxfsprogs-dev.git configure: use sys/xattr.h for fsetxattr detection The only user of fsetxattr and HAVE_FSETXATTR is fsr, which includes sys/xattr.h (from libc). However, the m4 macro to detect fsetxattr support requires attr/xattr.h (from libattr). libattr dropped xattr.h last year, so update the check. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index 7ee4acdd5..2c0c72ce6 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -223,14 +223,14 @@ AC_DEFUN([AC_HAVE_FLS], ]) # -# Check if we have a fsetxattr call (Mac OS X) +# Check if we have a fsetxattr call # AC_DEFUN([AC_HAVE_FSETXATTR], [ AC_CHECK_DECL([fsetxattr], have_fsetxattr=yes, [], [#include - #include ] + #include ] ) AC_SUBST(have_fsetxattr) ])