From 6b262fb74c93019653160c42fd64ac08a9ed8638 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 6 Aug 2024 18:16:59 +0200 Subject: [PATCH] fixup! mingw: optionally enable wsl compability file mode bits --- compat/win32/wsl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/win32/wsl.c b/compat/win32/wsl.c index c2b532280fd2bb..c6e9f3bfeacb84 100644 --- a/compat/win32/wsl.c +++ b/compat/win32/wsl.c @@ -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 @@ -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