Skip to content

Commit bf80167

Browse files
committed
fixup??? core.fsyncobjectfiles: add windows support for batch mode
Let's avoid including `winternl.h`, it only brings pain and suffering with it. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b594ea4 commit bf80167

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compat/win32/flush.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
#include "../../git-compat-util.h"
2-
#include <winternl.h>
32
#include "lazyload.h"
43

4+
typedef struct _IO_STATUS_BLOCK {
5+
union {
6+
NTSTATUS Status;
7+
PVOID Pointer;
8+
} u;
9+
ULONG_PTR Information;
10+
} IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
11+
512
int win32_fsync_no_flush(int fd)
613
{
714
IO_STATUS_BLOCK io_status;

0 commit comments

Comments
 (0)