summaryrefslogtreecommitdiff
path: root/xattr
diff options
context:
space:
mode:
authorRoman Bogorodskiy <bogorodskiy@gmail.com>2014-05-18 13:47:34 +0400
committerRoman Bogorodskiy <bogorodskiy@gmail.com>2014-05-18 13:47:34 +0400
commit798568b06131d49e581e7185b41c24d550b1bbe0 (patch)
tree80c199b05b7d661d85507a1724d932305e66ff65 /xattr
parent405c05f7dc1e5bbac03ddf4f33c36f1748440497 (diff)
downloadxattr-798568b06131d49e581e7185b41c24d550b1bbe0.tar.gz
Fix build on FreeBSD
Build on FreeBSD fails because XATTR_CREATE and XATTR_REPLACE are not defined, so provide our own definition of those.
Diffstat (limited to 'xattr')
-rw-r--r--xattr/lib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/xattr/lib.py b/xattr/lib.py
index 10362e5..0f29190 100644
--- a/xattr/lib.py
+++ b/xattr/lib.py
@@ -48,6 +48,8 @@ lib = ffi.verify("""
#define XATTR_XATTR_REPLACE 0x0004
#define XATTR_XATTR_NOSECURITY 0x0008
+#define XATTR_CREATE 0x1
+#define XATTR_REPLACE 0x2
/* Converts a freebsd format attribute list into a NULL terminated list.
* While the man page on extattr_list_file says it is NULL terminated,