Skip to content

Commit bd1f5c4

Browse files
committed
Some changes after Windows testing
1 parent e36daf5 commit bd1f5c4

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

doit.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
perl win32build.pl "C:\Program Files\PostgresProEnterprise\10" "C:\projects\pgwininstall2\pgwininstall\builddir\postgresql\postgresql-10.3\src"
1+
perl win32build.pl "C:\PgProject\pgwininstall-ee\builddir\distr_X64_10.4.1\postgresql" "C:\PgProject\pgwininstall-ee\builddir\postgresql\postgrespro-enterprise-10.4.1\src"

msvs/template.pg_probackup.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@
191191
<ClCompile Include="..\src\utils\parray.c" />
192192
<ClCompile Include="..\src\utils\pgut.c" />
193193
<ClCompile Include="..\src\validate.c" />
194+
<ClCompile Include="..\src\utils\json.c" />
195+
<ClCompile Include="..\src\utils\thread.c" />
194196
</ItemGroup>
195197
<ItemGroup>
196198
<ClInclude Include="@PGSRC@\bin\pg_basebackup\receivelog.h" />
@@ -202,6 +204,8 @@
202204
<ClInclude Include="..\src\utils\logger.h" />
203205
<ClInclude Include="..\src\utils\parray.h" />
204206
<ClInclude Include="..\src\utils\pgut.h" />
207+
<ClCompile Include="..\src\utils\json.h" />
208+
<ClCompile Include="..\src\utils\thread.h" />
205209
</ItemGroup>
206210
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
207211
<ImportGroup Label="ExtensionTargets">

msvs/template.pg_probackup96.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@
190190
<ClCompile Include="..\src\utils\parray.c" />
191191
<ClCompile Include="..\src\utils\pgut.c" />
192192
<ClCompile Include="..\src\validate.c" />
193+
<ClCompile Include="..\src\utils\json.c" />
194+
<ClCompile Include="..\src\utils\thread.c" />
193195
</ItemGroup>
194196
<ItemGroup>
195197
<ClInclude Include="@PGSRC@\bin\pg_basebackup\receivelog.h" />
@@ -200,6 +202,8 @@
200202
<ClInclude Include="..\src\utils\logger.h" />
201203
<ClInclude Include="..\src\utils\parray.h" />
202204
<ClInclude Include="..\src\utils\pgut.h" />
205+
<ClCompile Include="..\src\utils\json.h" />
206+
<ClCompile Include="..\src\utils\thread.h" />
203207
</ItemGroup>
204208
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
205209
<ImportGroup Label="ExtensionTargets">

src/utils/thread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
pthread_t main_tid = 0;
1313

1414
#ifdef WIN32
15+
#include <errno.h>
1516

1617
typedef struct win32_pthread
1718
{

src/utils/thread.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define PROBACKUP_THREAD_H
1212

1313
#ifdef WIN32
14+
#include "postgres_fe.h"
1415
#include "port/pthread-win32.h"
1516

1617
/* Use native win32 threads on Windows */

0 commit comments

Comments
 (0)