From 3ebdcb8f9378320ec126bb130f167b7b4908e605 Mon Sep 17 00:00:00 2001 From: Nick Kralevich Date: Fri, 22 Feb 2013 19:39:21 -0800 Subject: Fix win_sdk build. Change-Id: I1d1e722a533e0db99492e7fdf308f102dc4c3661 --- ext4_utils/contents.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 #include #include +#if defined(__linux__) #include #include +#else +#include +#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" -- cgit v1.2.3