diff options
author | Ben Summers <ben@fluffy.co.uk> | 2006-01-06 10:02:44 +0000 |
---|---|---|
committer | Ben Summers <ben@fluffy.co.uk> | 2006-01-06 10:02:44 +0000 |
commit | be32ddee052ee73f74e744a2e907865667b042fa (patch) | |
tree | 55b5bd98cafc3554c58a76cbfda9084f725171c6 /lib/common | |
parent | 143bb18701167817d218ea7027365a274f6433f4 (diff) |
Simple test for xattr support in test/bbackupd, fix xattr support for Darwin, move xattr adjustments to BoxPlatform.h to use globally
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/BoxPlatform.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/common/BoxPlatform.h b/lib/common/BoxPlatform.h index 9906b33c..42eb13e8 100644 --- a/lib/common/BoxPlatform.h +++ b/lib/common/BoxPlatform.h @@ -62,6 +62,19 @@ #define STRUCTURE_PACKING_FOR_WIRE_USE_HEADERS #endif +// Handle differing xattr APIs +#ifdef HAVE_SYS_XATTR_H + #if !defined(HAVE_LLISTXATTR) && defined(HAVE_LISTXATTR) && HAVE_DECL_XATTR_NOFOLLOW + #define llistxattr(a,b,c) listxattr(a,b,c,XATTR_NOFOLLOW) + #endif + #if !defined(HAVE_LGETXATTR) && defined(HAVE_GETXATTR) && HAVE_DECL_XATTR_NOFOLLOW + #define lgetxattr(a,b,c,d) getxattr(a,b,c,d,0,XATTR_NOFOLLOW) + #endif + #if !defined(HAVE_LSETXATTR) && defined(HAVE_SETXATTR) && HAVE_DECL_XATTR_NOFOLLOW + #define lsetxattr(a,b,c,d,e) setxattr(a,b,c,d,0,(e)|XATTR_NOFOLLOW) + #endif +#endif + #if defined WIN32 && !defined __MINGW32__ typedef __int8 int8_t; typedef __int16 int16_t; |