Skip to content

Commit 4099ea9

Browse files
cswaredscho
authored andcommitted
fixup! mingw: optionally enable wsl compability file mode bits
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 91d03cb commit 4099ea9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compat/win32/wsl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ int copy_wsl_mode_bits_from_disk(const wchar_t *wpath, ssize_t wpathlen,
5353
return ret;
5454
}
5555

56+
#ifndef LX_FILE_METADATA_HAS_UID
5657
#define LX_FILE_METADATA_HAS_UID 0x1
5758
#define LX_FILE_METADATA_HAS_GID 0x2
5859
#define LX_FILE_METADATA_HAS_MODE 0x4
@@ -77,6 +78,7 @@ typedef struct _FILE_STAT_LX_INFORMATION {
7778
uint32_t LxDeviceIdMajor;
7879
uint32_t LxDeviceIdMinor;
7980
} FILE_STAT_LX_INFORMATION, *PFILE_STAT_LX_INFORMATION;
81+
#endif
8082

8183
/*
8284
* This struct is extended from the original FILE_FULL_EA_INFORMATION of

0 commit comments

Comments
 (0)