Skip to content

Commit f3341da

Browse files
committed
[PGPRO-5750] fix windows compilation problem with PG-14
this is caused by upstream commit https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=bed90759fcbcd72d4d06969eebab81e47326f9a2 Reported by Victor Wagner and fixed by Victor Spirin
1 parent 92128e9 commit f3341da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/utils/file.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#include <stdio.h>
22
#include <unistd.h>
3-
#include <sys/stat.h>
43

54
#include "pg_probackup.h"
5+
/* sys/stat.h must be included after pg_probackup.h (see problems with compilation for windows described in PGPRO-5750) */
6+
#include <sys/stat.h>
7+
68
#include "file.h"
79
#include "storage/checksum.h"
810

0 commit comments

Comments
 (0)