Skip to content

Commit

Permalink
fixup! mingw: optionally enable wsl compability file mode bits
Browse files Browse the repository at this point in the history
  • Loading branch information
csware committed Aug 6, 2024
1 parent 2e6a859 commit 6b262fb
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 6b262fb

Please sign in to comment.