aboutsummaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/mkfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mkfs/mkfs.h b/mkfs/mkfs.h
index 21e1715..1b767aa 100644
--- a/mkfs/mkfs.h
+++ b/mkfs/mkfs.h
@@ -14,6 +14,14 @@
#ifdef HAVE_SYS_XATTR_H
#include <sys/xattr.h>
+
+#if defined(__APPLE__) && defined(__MACH__)
+#define llistxattr(path, list, size) \
+ listxattr(path, list, size, XATTR_NOFOLLOW)
+
+#define lgetxattr(path, name, value, size) \
+ getxattr(path, name, value, size, 0, XATTR_NOFOLLOW)
+#endif
#endif
#ifdef WITH_SELINUX