https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cc5c307b8ed889289febb…
commit cc5c307b8ed889289febb8d190b003005259b4f5
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Wed Nov 13 00:03:22 2019 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Wed Nov 13 00:03:22 2019 +0100
[BTRFS] Fix MSVC build
---
drivers/filesystems/btrfs/btrfs_drv.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/filesystems/btrfs/btrfs_drv.h
b/drivers/filesystems/btrfs/btrfs_drv.h
index e24e4980244..24307d93810 100644
--- a/drivers/filesystems/btrfs/btrfs_drv.h
+++ b/drivers/filesystems/btrfs/btrfs_drv.h
@@ -1588,6 +1588,7 @@ void __stdcall check_system_root(PDRIVER_OBJECT DriverObject, PVOID
Context, ULO
// based on function in sys/sysmacros.h
#define makedev(major, minor) (((minor) & 0xFF) | (((major) & 0xFFF) << 8)
| (((uint64_t)((minor) & ~0xFF)) << 12) | (((uint64_t)((major) & ~0xFFF))
<< 32))
+#ifndef __REACTOS__
// not in mingw yet
#ifndef _MSC_VER
typedef struct {
@@ -1608,6 +1609,22 @@ typedef struct {
#else
#define FSRTL_ADVANCED_FCB_HEADER_NEW FSRTL_ADVANCED_FCB_HEADER
#endif
+#else
+typedef struct {
+ FSRTL_COMMON_FCB_HEADER DUMMYSTRUCTNAME;
+ PFAST_MUTEX FastMutex;
+ LIST_ENTRY FilterContexts;
+ EX_PUSH_LOCK PushLock;
+ PVOID* FileContextSupportPointer;
+ union {
+ OPLOCK Oplock;
+ PVOID ReservedForRemote;
+ };
+ PVOID ReservedContext;
+} FSRTL_ADVANCED_FCB_HEADER_NEW;
+
+#define FSRTL_FCB_HEADER_V2 2
+#endif
static __inline POPLOCK fcb_oplock(fcb* fcb) {
if (fcb->Header.Version >= FSRTL_FCB_HEADER_V2)