From 7560f46ea960f18da6d81590ce6440d140967a03 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 4 Nov 2014 02:12:36 +0100 Subject: [PATCH] btrfs-progs: use system attr instead of attr library We use the attr version provided by system in other places already, now we can remove dependency on the separate attr library. Signed-off-by: David Sterba --- props.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/props.c b/props.c index 9fd612f..c7c6752 100644 --- a/props.c +++ b/props.c @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include @@ -29,6 +29,12 @@ #define XATTR_BTRFS_PREFIX "btrfs." #define XATTR_BTRFS_PREFIX_LEN (sizeof(XATTR_BTRFS_PREFIX) - 1) +/* + * Defined as synonyms in attr/xattr.h + */ +#ifndef ENOATTR +#define ENOATTR ENODATA +#endif static int prop_read_only(enum prop_object_type type, const char *object, -- 2.7.4