diff options
author | Nick Kralevich <nnk@google.com> | 2013-02-22 20:40:45 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-02-22 20:40:45 -0800 |
commit | 217567e61fd02ed95d5bb5e11379ca9a606fa671 (patch) | |
tree | 19bdece6fafbcb6375068d3ce18110188a9a1db4 | |
parent | 91b3748f3c0a6891d6120a99e8fef5025f4d5706 (diff) | |
parent | 3130a32fd910f424a9d6b811ed23d9a552004c81 (diff) | |
download | extras-217567e61fd02ed95d5bb5e11379ca9a606fa671.tar.gz |
am 3130a32f: Merge "Fix win_sdk build."
* commit '3130a32fd910f424a9d6b811ed23d9a552004c81':
Fix win_sdk build.
-rw-r--r-- | ext4_utils/contents.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext4_utils/contents.c b/ext4_utils/contents.c index 13e0510b..48996483 100644 --- a/ext4_utils/contents.c +++ b/ext4_utils/contents.c @@ -17,8 +17,27 @@ #include <sys/stat.h> #include <string.h> #include <stdio.h> +#if defined(__linux__) #include <linux/capability.h> #include <linux/xattr.h> +#else +#include <stdint.h> +#define VFS_CAP_FLAGS_EFFECTIVE 0x000001 +#define VFS_CAP_U32_2 2 +#define VFS_CAP_U32 VFS_CAP_U32_2 +#define VFS_CAP_REVISION_2 0x02000000 +#define VFS_CAP_REVISION VFS_CAP_REVISION_2 + +struct vfs_cap_data { + uint32_t magic_etc; + struct { + uint32_t permitted; + uint32_t inheritable; + } data[VFS_CAP_U32]; +}; +#define XATTR_SELINUX_SUFFIX "selinux" +#define XATTR_CAPS_SUFFIX "capability" +#endif /* !defined(__linux__) */ #include "ext4_utils.h" #include "ext4.h" |