]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
configure: use sys/xattr.h for fsetxattr detection
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 28 Mar 2019 23:04:51 +0000 (18:04 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 28 Mar 2019 23:04:51 +0000 (18:04 -0500)
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 <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
m4/package_libcdev.m4

index 7ee4acdd5fd4514b4cdb3ed2e25fe1a8ff11399c..2c0c72ce60c59ce89a16f29f4f8e93903ddaaa17 100644 (file)
@@ -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 <sys/types.h>
-        #include <attr/xattr.h>]
+        #include <sys/xattr.h>]
        )
     AC_SUBST(have_fsetxattr)
   ])