summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2019-04-11 00:31:22 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2019-04-11 00:31:22 -0400
commitf652fdc9622ee513469f046bceea81ada7fa5b02 (patch)
tree1b1d05a3ab485b97216afbb908586aadf3258815
parent0abf87f97337a589cb91429b215bf9a34e35870e (diff)
define XATTR_CREATE/XATTR_REPLACE for systems with old headers
-rw-r--r--include/linux/xattr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/xattr.h b/include/linux/xattr.h
index d7fade73..fbc1e1f5 100644
--- a/include/linux/xattr.h
+++ b/include/linux/xattr.h
@@ -16,6 +16,14 @@
#include <linux/spinlock.h>
#include <uapi/linux/xattr.h>
+#ifndef XATTR_CREATE
+#define XATTR_CREATE 0x1
+#endif
+
+#ifndef XATTR_REPLACE
+#define XATTR_REPLACE 0x2
+#endif
+
struct inode;
struct dentry;