Skip to content

Commit

Permalink
Do not redefine _FILE_STAT_LX_INFORMATION (git-for-windows#5092)
Browse files Browse the repository at this point in the history
The struct definition as well as the other defines are already defined
in Windows SDK >= 10.1.26100.1.
  • Loading branch information
dscho authored Aug 7, 2024
2 parents 2e6a859 + 6b262fb commit 059f0c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compat/win32/wsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ int copy_wsl_mode_bits_from_disk(const wchar_t *wpath, ssize_t wpathlen,
return ret;
}

#ifndef LX_FILE_METADATA_HAS_UID
#define LX_FILE_METADATA_HAS_UID 0x1
#define LX_FILE_METADATA_HAS_GID 0x2
#define LX_FILE_METADATA_HAS_MODE 0x4
Expand All @@ -78,6 +79,7 @@ typedef struct _FILE_STAT_LX_INFORMATION {
uint32_t LxDeviceIdMajor;
uint32_t LxDeviceIdMinor;
} FILE_STAT_LX_INFORMATION, *PFILE_STAT_LX_INFORMATION;
#endif

/*
* This struct is extended from the original FILE_FULL_EA_INFORMATION of
Expand Down

0 comments on commit 059f0c9

Please sign in to comment.