diff options
Diffstat (limited to 'unpack')
-rw-r--r-- | unpack/rdsquashfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h index dc9d68c..17c0a85 100644 --- a/unpack/rdsquashfs.h +++ b/unpack/rdsquashfs.h @@ -17,6 +17,11 @@ #endif #ifdef HAVE_SYS_XATTR_H #include <sys/xattr.h> + +#if defined(__APPLE__) && defined(__MACH__) +#define lsetxattr(path, name, value, size, flags) \ + setxattr(path, name, value, size, 0, flags | XATTR_NOFOLLOW) +#endif #endif #include <string.h> #include <stdlib.h> |