Skip to content

Commit 1d3debf

Browse files
author
Christian Hergert
committed
stat: fix build on mingw.
1 parent 5342f05 commit 1d3debf

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/tools/mongoc-stat.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717

1818
#include <bson.h>
19+
20+
21+
#ifdef BSON_OS_UNIX
22+
23+
1924
#include <fcntl.h>
2025
#include <stdio.h>
2126
#include <stdlib.h>
@@ -24,9 +29,6 @@
2429
#include <unistd.h>
2530

2631

27-
#ifdef BSON_OS_UNIX
28-
29-
3032
#pragma pack(1)
3133
typedef struct
3234
{
@@ -225,6 +227,8 @@ main (int argc,
225227

226228
#else
227229

230+
#include <stdio.h>
231+
228232
int
229233
main (int argc,
230234
char *argv[])

0 commit comments

Comments
 (0)