From 7eb6e7c2aca2a55cc90f4ab14a974c63923f488b Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 8 Sep 2017 08:15:21 +0000 Subject: [PATCH] [BTRFS] Fix build CORE-13763 svn path=/trunk/; revision=75787 --- reactos/drivers/filesystems/btrfs/balance.c | 2 ++ reactos/sdk/include/psdk/ntddstor.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/reactos/drivers/filesystems/btrfs/balance.c b/reactos/drivers/filesystems/btrfs/balance.c index c961fc47d34..cf9717480da 100644 --- a/reactos/drivers/filesystems/btrfs/balance.c +++ b/reactos/drivers/filesystems/btrfs/balance.c @@ -67,9 +67,11 @@ typedef struct { LIST_ENTRY list_entry; } data_reloc_ref; +#ifndef __REACTOS__ #ifndef _MSC_VER // not in mingw yet #define DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED 0x80000000 #endif +#endif #define BALANCE_UNIT 0x100000 // only read 1 MB at a time diff --git a/reactos/sdk/include/psdk/ntddstor.h b/reactos/sdk/include/psdk/ntddstor.h index 900f539a002..2a5c64d1b7c 100644 --- a/reactos/sdk/include/psdk/ntddstor.h +++ b/reactos/sdk/include/psdk/ntddstor.h @@ -566,6 +566,8 @@ typedef struct _DEVICE_TRIM_DESCRIPTOR { typedef ULONG DEVICE_DATA_MANAGEMENT_SET_ACTION; +#define DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED 0x80000000 + typedef struct _DEVICE_DATA_SET_RANGE { LONGLONG StartingOffset; ULONGLONG LengthInBytes;