Skip to content

Commit 059f0c9

Browse files
authored
Do not redefine _FILE_STAT_LX_INFORMATION (git-for-windows#5092)
The struct definition as well as the other defines are already defined in Windows SDK >= 10.1.26100.1.
2 parents 2e6a859 + 6b262fb commit 059f0c9

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
@@ -54,6 +54,7 @@ int copy_wsl_mode_bits_from_disk(const wchar_t *wpath, ssize_t wpathlen,
5454
return ret;
5555
}
5656

57+
#ifndef LX_FILE_METADATA_HAS_UID
5758
#define LX_FILE_METADATA_HAS_UID 0x1
5859
#define LX_FILE_METADATA_HAS_GID 0x2
5960
#define LX_FILE_METADATA_HAS_MODE 0x4
@@ -78,6 +79,7 @@ typedef struct _FILE_STAT_LX_INFORMATION {
7879
uint32_t LxDeviceIdMajor;
7980
uint32_t LxDeviceIdMinor;
8081
} FILE_STAT_LX_INFORMATION, *PFILE_STAT_LX_INFORMATION;
82+
#endif
8183

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

0 commit comments

Comments
 (0)