]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
src/t_attr_corruption: fix xattr.h include problems
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 20 Feb 2019 17:20:05 +0000 (09:20 -0800)
committerEryu Guan <guaneryu@gmail.com>
Fri, 22 Feb 2019 01:03:24 +0000 (09:03 +0800)
Apparently newer versions of libattr (which haven't yet been picked
up by Debian or Ubuntu) don't ship xattr.h anymore, because we're
supposed to use the libc version in sys/xattr.h.  So do that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/t_attr_corruption.c

index 1fa5e41f9c08fff9e8d70c39d64e74c35ab4217f..f26611f9968dcedee6c0ea5a482171c0a99d63cf 100644 (file)
@@ -27,7 +27,7 @@
 #include <string.h>
 #include <stdint.h>
 #include <unistd.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
 
 void die(const char *msg)
 {