diff options
author | David Sterba <dsterba@suse.cz> | 2014-11-04 02:12:36 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-11-19 14:42:17 +0100 |
commit | 7560f46ea960f18da6d81590ce6440d140967a03 (patch) | |
tree | 3e7e3270812db15db511da3ee0bb3ac545b5db7d /props.c | |
parent | 5bfc3fea8188ca013881299c1a50d3e6402fc7be (diff) |
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 <dsterba@suse.cz>
Diffstat (limited to 'props.c')
-rw-r--r-- | props.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -17,7 +17,7 @@ #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/types.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include <fcntl.h> #include <unistd.h> @@ -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, |