From 1ae8536545b7ea486dbe15247e6dd817ee211297 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 28 Jun 2017 18:00:16 -0400 Subject: [PATCH] Ooops, WIN32 code in pg_ctl.c still needs PQExpBuffer. Per buildfarm. --- src/bin/pg_ctl/pg_ctl.c | 4 ++++ src/tools/msvc/Mkvcbuild.pm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 6f05790209..0c65196bda 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -36,6 +36,10 @@ #include "getopt_long.h" #include "utils/pidfile.h" +#ifdef WIN32 /* on Unix, we don't need libpq */ +#include "pqexpbuffer.h" +#endif + /* PID can be negative for standalone backend */ typedef long pgpid_t; diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 0179844349..621238417d 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -49,7 +49,7 @@ my @contrib_excludes = ( # Set of variables for frontend modules my $frontend_defines = { 'initdb' => 'FRONTEND' }; -my @frontend_uselibpq = ('pg_upgrade', 'pgbench', 'psql', 'initdb'); +my @frontend_uselibpq = ('pg_ctl', 'pg_upgrade', 'pgbench', 'psql', 'initdb'); my @frontend_uselibpgport = ( 'pg_archivecleanup', 'pg_test_fsync', 'pg_test_timing', 'pg_upgrade', -- 2.40.0