summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-11-04 02:12:36 +0100
committerDavid Sterba <dsterba@suse.cz>2014-11-19 14:42:17 +0100
commit7560f46ea960f18da6d81590ce6440d140967a03 (patch)
tree3e7e3270812db15db511da3ee0bb3ac545b5db7d
parent5bfc3fea8188ca013881299c1a50d3e6402fc7be (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>
-rw-r--r--props.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/props.c b/props.c
index 9fd612f9..c7c67529 100644
--- a/props.c
+++ b/props.c
@@ -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,